throw2.C: New test.

* g++.old-deja/g++.eh/throw2.C: New test.  CV-qualifiers are not
 	properly discarded.

From-SVN: r23666
This commit is contained in:
Alexandre Oliva 1998-11-15 19:00:45 +00:00 committed by Alexandre Oliva
parent 411efd21c5
commit 233363cbb1
2 changed files with 21 additions and 0 deletions

View 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

View File

@ -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;
}