blob: 408755e3195bc163402bdbc0e7a72826cbf7c52a [file] [log] [blame]
// PR c++/60184
// { dg-do compile { target c++11 } }
union Test1 {
static int kConstant;
};
union Test2 {
static const int kConstant;
};
const int Test2::kConstant = 10;
union Test3 {
int& kConstant; // { dg-error "may not have reference type" }
};
union Test4 {
const int& kConstant = 10; // { dg-error "may not have reference type" }
};