summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/eh/spec8.C
blob: 72dadff2257d29998b15a90910a46f2132c18b25 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/24817

struct exception {};

template <typename T> void foo() throw(exception); // { dg-error "declaration" }
template <typename T> void foo(); // { dg-error "exception" }

struct bar
{
  template <typename T> friend void foo(); // { dg-error "exception" }
};