blob: 130ca99e2aa657c6d6df2ad4bee276a4906fcb9f [file] [log] [blame]
#if defined(CF_ENUM)
# error "This test requires controlling the definition of CF_ENUM"
#endif
// Make this C-compatible by leaving out the type.
#define CF_ENUM(_name) enum _name _name; enum _name
typedef CF_ENUM(EnumWithDefaultExhaustivity) {
EnumWithDefaultExhaustivityLoneCase
};
// This name is also specially recognized by Swift.
#define __CF_ENUM_ATTRIBUTES __attribute__((enum_extensibility(open)))
typedef CF_ENUM(EnumWithSpecialAttributes) {
EnumWithSpecialAttributesLoneCase
} __CF_ENUM_ATTRIBUTES;