diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.eh/throw2.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.eh/throw2.C | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.eh/throw2.C b/gcc/testsuite/g++.old-deja/g++.eh/throw2.C deleted file mode 100644 index fbf0cec9c35..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.eh/throw2.C +++ /dev/null @@ -1,16 +0,0 @@ -// Build don't link: - -// Submitted by Sebastian Ritterbusch <uabp@rz.uni-karlsruhe.de> - -#define ANY int // a class with a public constructor - -void athrow(const ANY & e) throw(ANY) -{ - throw e; // gets bogus error - discarding const -} - -int main(void) -{ - athrow(ANY()); - return 0; -} |