summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/error36.C
blob: b16b976e3822420057f53bf44364552a3854d961 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/37719.C

template <typename T>
class foo {
    void bar() throw(int); // { dg-error "throw \\(int\\)" }
};

template <>
void foo<int>::bar() throw(float) {} // { dg-error "throw \\(float\\)" }