diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/template/local4.C')
-rw-r--r-- | gcc/testsuite/g++.dg/template/local4.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/local4.C b/gcc/testsuite/g++.dg/template/local4.C new file mode 100644 index 000000000..9a03c9a7b --- /dev/null +++ b/gcc/testsuite/g++.dg/template/local4.C @@ -0,0 +1,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 } +} |