2018-02-09 Sebastian Perta <sebastian.perta@renesas.com>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / init6.C
blobed8c0ade2fa26de7082f2c9c865a1212d9cac37f
1 // { dg-do assemble  }
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;