bolt/deps/llvm-18.1.8/clang/test/SemaCXX/suppress-availability-error-cf-options.cpp

10 lines
283 B
C++
Raw Normal View History

2025-02-14 19:21:04 +01:00
// RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics
#define CF_OPTIONS(_type, _name) __attribute__((availability(swift, unavailable))) _type _name; enum : _name
__attribute__((availability(macOS, unavailable)))
typedef CF_OPTIONS(unsigned, TestOptions) {
x
};