FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / init6.C
blobe49758adf1a6bd1bd9b9bfc3a92977dbdbd7ed34
1 // Build don't link: 
2 // GROUPS passed initialization
3 class Tag {
4 public:
5         Tag(int i):value(i){}
6         int value;
7 };
9 extern const Tag myTag;
10 extern const Tag myTag=9;
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;