diff options
Diffstat (limited to 'clang/test/Preprocessor/has_c_attribute.c')
-rw-r--r-- | clang/test/Preprocessor/has_c_attribute.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/has_c_attribute.c b/clang/test/Preprocessor/has_c_attribute.c index 843a67a2646..f8b0b364faa 100644 --- a/clang/test/Preprocessor/has_c_attribute.c +++ b/clang/test/Preprocessor/has_c_attribute.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fdouble-square-bracket-attributes -std=c11 -E %s -o - | FileCheck %s +// RUN: %clang_cc1 -std=c2x -E %s -o - | FileCheck %s // CHECK: has_fallthrough #if __has_c_attribute(fallthrough) @@ -14,3 +15,8 @@ #if __has_c_attribute(__nodiscard__) int has_nodiscard_underscore(); #endif + +// CHECK: has_clang_annotate +#if __has_c_attribute(clang::annotate) + int has_clang_annotate(); +#endif |