[clang][NFC] Add a test for __attribute__((flag_enum)) with an unnamed enumeration.

This commit is contained in:
Bruno Ricci 2020-07-26 17:24:43 +01:00
parent a2f83d5a07
commit b0512eed1e
No known key found for this signature in database
GPG Key ID: D58C906B2F684D92
1 changed files with 4 additions and 0 deletions

View File

@ -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,