Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.eh / tmpl3.C
blob310ac50fae64142342c52a93bd2f9dd8efe450a3
1 // { dg-do assemble  }
3 // Posted by Trevor Taylor <ttaylor@powerup.com.au>
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     ;
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 { }