Files
swift-mirror/test/DebugInfo/Inputs/Macro.h
David Zarzycki b1ac68b3b1 [test] Clang is now more strict about underlying type enums
As of c90e198107431f64b73686bdce31c293e3380ac7, clang is now more strict
about parsing of enum-base in order to follow C++11 rules.
2020-06-04 08:54:36 -04:00

14 lines
202 B
C

#ifdef __cplusplus
#define MY_ENUM(NAME) \
enum NAME : int
#else
#define MY_ENUM(NAME) \
enum NAME : int; \
typedef enum NAME NAME; \
enum NAME : int
#endif
MY_ENUM(macro_enum) {
zero = 0
};