From 233363cbb17a40fb813d4aaf2f5a349c7237af28 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Sun, 15 Nov 1998 19:00:45 +0000 Subject: [PATCH] throw2.C: New test. * g++.old-deja/g++.eh/throw2.C: New test. CV-qualifiers are not properly discarded. From-SVN: r23666 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.old-deja/g++.eh/throw2.C | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.eh/throw2.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7e299730cd8..b3ce61f60b6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +1998-11-16 Alexandre Oliva + + * g++.old-deja/g++.eh/throw2.C: New test. CV-qualifiers are not + properly discarded. + 1998-11-07 Gerald Pfeifer * README: New file, general information about the testsuite and diff --git a/gcc/testsuite/g++.old-deja/g++.eh/throw2.C b/gcc/testsuite/g++.old-deja/g++.eh/throw2.C new file mode 100644 index 00000000000..29b8932e2b4 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.eh/throw2.C @@ -0,0 +1,16 @@ +// Build don't link: + +// Submitted by Sebastian Ritterbusch + +#define ANY int // a class with a public constructor + +void athrow(const ANY & e) throw(ANY) +{ + throw e; // gets bogus error - discarding const - XFAIL *-*-* +} + +int main(void) +{ + athrow(ANY()); + return 0; +}