PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / template / error36.C
blobd808c1430b18579582421b26fef36b195ca0f545
1 // PR c++/37719.C
2 // { dg-do compile { target c++14_down } }
4 template <typename T>
5 class foo {
6     void bar() throw(int); // { dg-message "throw \\(int\\)" }
7 };                         // { dg-warning "deprecated" "" { target c++11 } .-1 }
9 template <>
10 void foo<int>::bar() throw(float) {} // { dg-error "throw \\(float\\)" }
11                                      // { dg-warning "deprecated" "" { target c++11 } .-1 }