diff options
Diffstat (limited to 'gcc')
| -rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/testsuite/g++.dg/other/pr28114.C | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f1e1480..8dc8002 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-06-26 Steve Ellcey <sje@cup.hp.com> + + PR c++/28114 + * g++.dg/other/pr28114.C: New. + 2006-06-25 Eric Botcazou <ebotcazou@adacore.com> * gcc.c-torture/compile/20060625-1.c: New test. diff --git a/gcc/testsuite/g++.dg/other/pr28114.C b/gcc/testsuite/g++.dg/other/pr28114.C new file mode 100644 index 0000000..05aeebb --- /dev/null +++ b/gcc/testsuite/g++.dg/other/pr28114.C @@ -0,0 +1,9 @@ + +// Test to make sure we do not ICE on this invalid program. + +template<int> void foo(struct {}*); // { dg-error "" } + +void bar() +{ + foo<0>(0); // { dg-error "" } +} |
