3 // Submitted by Sebastian Ritterbusch <uabp@rz.uni-karlsruhe.de>
5 #define ANY int // a class with a public constructor
7 void athrow(const ANY & e)
8 #if __cplusplus <= 201402L
9 throw(ANY) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
12 throw e; // { dg-bogus "" } discarding const