xref: /llvm-project/clang/test/SemaCXX/suppress-availability-error-cf-options.cpp (revision bb58748e52ebd48a46de20525ef2c594db044a11)
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
3 
4 #define CF_OPTIONS(_type, _name) __attribute__((availability(swift, unavailable))) _type _name; enum : _name
5 
6 __attribute__((availability(macOS, unavailable)))
7 typedef CF_OPTIONS(unsigned, TestOptions) {
8   x
9 };
10