Debian Codegraph @

gcc/testsuite/g++.dg/template/eh2.C

raw
1 // PR c++/23191
2 // Origin: Volker Reichelt <[email protected]>
3 // { dg-do compile { target c++14_down } }
4
5 template<typename T> struct A
6 {
7 void foo() throw(typename T::X); // { dg-error "not a class" }
8 }; // { dg-warning "deprecated" "" { target c++11 } .-1 }
9
10 A<void> a; // { dg-message "required" }