llvm-project/clang/test/Lexer/has_feature_cxx_unstable.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
353 B
C++
Raw Normal View History

// RUN: %clang_cc1 -funstable -E %s -o - | FileCheck --check-prefix=CHECK-UNSTABLE %s
// RUN: %clang_cc1 -E %s -o - | FileCheck --check-prefix=CHECK-NO-UNSTABLE %s
#if __has_feature(cxx_unstable)
int has_cxx_unstable();
#else
int has_no_cxx_unstable();
#endif
// CHECK-UNSTABLE: int has_cxx_unstable();
// CHECK-NO-UNSTABLE: int has_no_cxx_unstable();