diff options
author | Martin v. Löwis <loewis@gcc.gnu.org> | 2000-01-01 13:30:01 +0000 |
---|---|---|
committer | Martin v. Löwis <loewis@gcc.gnu.org> | 2000-01-01 13:30:01 +0000 |
commit | 0c12c02a4fad172fadd73a9bffbd0658c92e31b6 (patch) | |
tree | 8e9d7cba81eadde1314823f7f832eb61a42b56fd | |
parent | 1cb47a5cab576fa5725eb857bf801a006a19571a (diff) | |
download | gcc-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.C | 8 |
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 +}; |