blob: 63bb029d9067a0f66d779c66380e041f119342fa [file] [log] [blame]
// { dg-do assemble }
// 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; // { dg-bogus "" } discarding const
}
int main(void)
{
athrow(ANY());
return 0;
}