throw2.C: New test.
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Sun, 15 Nov 1998 19:00:45 +0000 (19:00 +0000)
committerAlexandre Oliva <oliva@gcc.gnu.org>
Sun, 15 Nov 1998 19:00:45 +0000 (19:00 +0000)
* g++.old-deja/g++.eh/throw2.C: New test.  CV-qualifiers are not
  properly discarded.

From-SVN: r23666

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.eh/throw2.C [new file with mode: 0644]

index 7e299730cd82657522968a84209caef5add0218d..b3ce61f60b68a91d76799688c30959daf3348c3e 100644 (file)
@@ -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 (file)
index 0000000..29b8932
--- /dev/null
@@ -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;
+}