summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/local4.C
blob: 9a03c9a7b98e09cae2dbd258bc4995fbcedfb88d (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/17413
// { dg-options -std=c++98 }

template <typename T> void foo() {} // { dg-message "note" }

int main () {
  struct S {};
  foo<S> (); // { dg-error "match" } 
  // { dg-message "candidate" "candidate note" { target *-*-* } 8 }
}