blob: 310ac50fae64142342c52a93bd2f9dd8efe450a3 [file] [log] [blame]
// { dg-do assemble }
// Posted by Trevor Taylor <ttaylor@powerup.com.au>
template<class T> struct A {
void X()
#if __cplusplus <= 201402L
throw(T) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
#endif
;
};
template<class T>
inline void A<T>::X()
#if __cplusplus <= 201402L
throw(T) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
#endif
{ }