blob: e49758adf1a6bd1bd9b9bfc3a92977dbdbd7ed34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Build don't link:
// GROUPS passed initialization
class Tag {
public:
Tag(int i):value(i){}
int value;
};
extern const Tag myTag;
extern const Tag myTag=9;
// The compiler should not issue an error on this line; expand_static_init
// should be checking that there's no initializer for this line, and thus
// doesn't need to produce an error.
extern const Tag myTag;
|