summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/error8.C
blob: 30872a2e953da2dc147deab04155ea46bb7b212c (plain)
1
2
3
4
5
6
7
// PR c++/11116

template <typename T> struct S {};

void f() {
  throw S (); // { dg-error "template" }
}