diff options
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/ext/pr28291.C | 13 |
2 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a9398a3..9638bcf 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-07-17 Steve Ellcey <sje@cup.hp.com> + + PR c++/28291 + * g++.dg/ext/pr28291.C: New test. + 2006-07-17 Richard Sandiford <richard@codesourcery.com> PR middle-end/28403 diff --git a/gcc/testsuite/g++.dg/ext/pr28291.C b/gcc/testsuite/g++.dg/ext/pr28291.C new file mode 100644 index 0000000..1b3b9f4 --- /dev/null +++ b/gcc/testsuite/g++.dg/ext/pr28291.C @@ -0,0 +1,13 @@ + +// Test to make sure we do not ICE on this invalid program. + +// { dg-do compile } +// { dg-options "" } + +struct A +{ + static int i; + int j; +}; + +A a = { i:0 }; // { dg-error "non-static data member" } |