aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin v. Löwis <loewis@gcc.gnu.org>2000-01-01 13:30:01 +0000
committerMartin v. Löwis <loewis@gcc.gnu.org>2000-01-01 13:30:01 +0000
commit0c12c02a4fad172fadd73a9bffbd0658c92e31b6 (patch)
tree8e9d7cba81eadde1314823f7f832eb61a42b56fd
parent1cb47a5cab576fa5725eb857bf801a006a19571a (diff)
downloadgcc-0c12c02a4fad172fadd73a9bffbd0658c92e31b6.zip
gcc-0c12c02a4fad172fadd73a9bffbd0658c92e31b6.tar.gz
gcc-0c12c02a4fad172fadd73a9bffbd0658c92e31b6.tar.bz2
New test case.
From-SVN: r31158
-rw-r--r--gcc/testsuite/g++.old-deja/g++.martin/pure1.C8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.martin/pure1.C b/gcc/testsuite/g++.old-deja/g++.martin/pure1.C
new file mode 100644
index 0000000..2bb240a
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.martin/pure1.C
@@ -0,0 +1,8 @@
+// Build don't link:
+class A
+{
+ public:
+ virtual void f(void) = 0; // pure virtual function.
+ A() {f();} // ERROR - called in a constructor
+ ~A() {f();} // ERROR - called in a destructor
+};