aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@dcc.unicamp.br>1998-11-15 19:00:45 +0000
committerAlexandre Oliva <oliva@gcc.gnu.org>1998-11-15 19:00:45 +0000
commit233363cbb17a40fb813d4aaf2f5a349c7237af28 (patch)
tree73bc83df9966c4ddf8dbf9ee593eaccacdf52bf7 /gcc
parent411efd21c56165568fed0cb415a61051ffe1ac3c (diff)
downloadgcc-233363cbb17a40fb813d4aaf2f5a349c7237af28.zip
gcc-233363cbb17a40fb813d4aaf2f5a349c7237af28.tar.gz
gcc-233363cbb17a40fb813d4aaf2f5a349c7237af28.tar.bz2
throw2.C: New test.
* g++.old-deja/g++.eh/throw2.C: New test. CV-qualifiers are not properly discarded. From-SVN: r23666
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.old-deja/g++.eh/throw2.C16
2 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 7e29973..b3ce61f 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+1998-11-16 Alexandre Oliva <oliva@dcc.unicamp.br>
+
+ * g++.old-deja/g++.eh/throw2.C: New test. CV-qualifiers are not
+ properly discarded.
+
1998-11-07 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
* 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 0000000..29b8932
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.eh/throw2.C
@@ -0,0 +1,16 @@
+// 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 - XFAIL *-*-*
+}
+
+int main(void)
+{
+ athrow(ANY());
+ return 0;
+}