aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/local4.C
blob: 748810b409ecb9713685d04d5f5080e4c8ef336a (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/17413

template <typename T> void foo() {}

int main () {
  struct S {};
  // We do not simply use "local|match" on line 10 because we want to
  // make sure that "local" appears.
  // { dg-error "local" "" { target *-*-* } 10 }
  foo<S> (); // { dg-error "trying|match" } 
}