gcc/testsuite/g++.old-deja/g++.brendan/init7.C
raw| 1 | // { dg-do assemble } |
| 2 | // GROUPS passed initialization |
| 3 | struct myChoiceList |
| 4 | { |
| 5 | int bla; |
| 6 | int blubb; |
| 7 | int brummbrumm; |
| 8 | }; |
| 9 | |
| 10 | extern const myChoiceList foo; |
| 11 | |
| 12 | extern const myChoiceList foo = {1,1,1}; |
| 13 | |
| 14 | // finish_decl should have an exclusion so an error is not produced |
| 15 | // for this line. |
| 16 | extern const myChoiceList foo; |