1// { dg-do assemble } 2 3// Submitted by Sebastian Ritterbusch <uabp@rz.uni-karlsruhe.de> 4 5#define ANY int // a class with a public constructor 6 7void athrow(const ANY & e) throw(ANY) 8{ 9 throw e; // { dg-bogus "" } discarding const 10} 11 12int main(void) 13{ 14 athrow(ANY()); 15 return 0; 16} 17