gcc/testsuite/g++.old-deja/g++.brendan/init6.C
raw| 1 | // { dg-do assemble } |
| 2 | // GROUPS passed initialization |
| 3 | class Tag { |
| 4 | public: |
| 5 | Tag(int i):value(i){} |
| 6 | int value; |
| 7 | }; |
| 8 | |
| 9 | extern const Tag myTag; |
| 10 | extern const Tag myTag=9; |
| 11 | |
| 12 | // The compiler should not issue an error on this line; expand_static_init |
| 13 | // should be checking that there's no initializer for this line, and thus |
| 14 | // doesn't need to produce an error. |
| 15 | extern const Tag myTag; |