blob: 11b9656f7450d7af11151706a300ee7e98c2c0ce [file] [log] [blame]
// PR c++/78890
// { dg-do compile { target c++11 } }
union Test1 {
static int kConstant;
};
union Test2 {
static const int kConstant;
};
const int Test2::kConstant = 10;
int k;
union Test3 {
static int& kRef;
};
int& Test3::kRef = k;
union Test4 {
static const int& kRef;
};
const int& Test4::kRef = 10;