forked from OSchip/llvm-project
[clang][NFC] Add a test for __attribute__((flag_enum)) with an unnamed enumeration.
This commit is contained in:
parent
a2f83d5a07
commit
b0512eed1e
|
@ -6,6 +6,10 @@ enum __attribute__((flag_enum)) flag {
|
|||
ec = 0x8,
|
||||
};
|
||||
|
||||
enum __attribute__((flag_enum)) {
|
||||
g = 0x7, // expected-warning {{enumeration value 'g' is out of range of flags in enumeration type ''}}
|
||||
};
|
||||
|
||||
enum __attribute__((flag_enum)) flag2 {
|
||||
ga = 0x1,
|
||||
gb = 0x4,
|
||||
|
|
Loading…
Reference in New Issue