diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/other/pr28114.C')
-rw-r--r-- | gcc/testsuite/g++.dg/other/pr28114.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/pr28114.C b/gcc/testsuite/g++.dg/other/pr28114.C new file mode 100644 index 000000000..63ecbf51f --- /dev/null +++ b/gcc/testsuite/g++.dg/other/pr28114.C @@ -0,0 +1,10 @@ + +// Test to make sure we do not ICE on this invalid program. + +template<int> void foo(struct {}*); // { dg-message "" } + +void bar() +{ + foo<0>(0); // { dg-error "" } + // { dg-message "candidate" "candidate note" { target *-*-* } 8 } +} |