properly discarded.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23666
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
--- /dev/null
+// 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;
+}