gcc/testsuite/g++.dg/template/error36.C
raw| 1 | // PR c++/37719.C |
| 2 | // { dg-do compile { target c++14_down } } |
| 3 | |
| 4 | template <typename T> |
| 5 | class foo { |
| 6 | void bar() throw(int); // { dg-message "throw \\(int\\)" } |
| 7 | }; // { dg-warning "deprecated" "" { target c++11 } .-1 } |
| 8 | |
| 9 | template <> |
| 10 | void foo<int>::bar() throw(float) {} // { dg-error "throw \\(float\\)" } |
| 11 | // { dg-warning "deprecated" "" { target c++11 } .-1 } |