From: Martin v. Löwis Date: Sat, 1 Jan 2000 13:30:01 +0000 (+0000) Subject: New test case. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0c12c02a4fad172fadd73a9bffbd0658c92e31b6;p=gcc.git New test case. From-SVN: r31158 --- 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 00000000000..2bb240ab89d --- /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 +};