Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.eh/tmpl3.C

raw
1 // { dg-do assemble }
2
3 // Posted by Trevor Taylor <[email protected]>
4
5 template<class T> struct A {
6 void X()
7 #if __cplusplus <= 201402L
8 throw(T) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
9 #endif
10 ;
11 };
12
13 template<class T>
14 inline void A<T>::X()
15 #if __cplusplus <= 201402L
16 throw(T) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
17 #endif
18 { }