Skip to content

Commit b1ac68b

Browse files
committed
[test] Clang is now more strict about underlying type enums
As of c90e198, clang is now more strict about parsing of enum-base in order to follow C++11 rules.
1 parent 07d37a8 commit b1ac68b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/DebugInfo/Inputs/Macro.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1+
#ifdef __cplusplus
12
#define MY_ENUM(NAME) \
2-
enum NAME : int NAME; \
33
enum NAME : int
4+
#else
5+
#define MY_ENUM(NAME) \
6+
enum NAME : int; \
7+
typedef enum NAME NAME; \
8+
enum NAME : int
9+
#endif
410

511
MY_ENUM(macro_enum) {
612
zero = 0

0 commit comments

Comments
 (0)