diff options
Diffstat (limited to 'clang/test/Preprocessor/has_attribute.cpp')
-rw-r--r-- | clang/test/Preprocessor/has_attribute.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/clang/test/Preprocessor/has_attribute.cpp b/clang/test/Preprocessor/has_attribute.cpp index 75f72c7535b..1ab45020b44 100644 --- a/clang/test/Preprocessor/has_attribute.cpp +++ b/clang/test/Preprocessor/has_attribute.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -triple i386-unknown-unknown -std=c++11 -E %s -o - | FileCheck %s +// RUN: %clang_cc1 -triple i386-unknown-unknown -fms-compatibility -std=c++11 -E %s -o - | FileCheck %s // CHECK: has_cxx11_carries_dep #if __has_cpp_attribute(carries_dependency) @@ -51,3 +51,18 @@ #if __has_cpp_attribute(deprecated) == 201309 int has_cxx14_deprecated_vers(); #endif + +// CHECK: has_declspec_uuid +#if __has_declspec_attribute(uuid) + int has_declspec_uuid(); +#endif + +// CHECK: has_declspec_uuid2 +#if __has_declspec_attribute(__uuid__) + int has_declspec_uuid2(); +#endif + +// CHECK: does_not_have_declspec_fallthrough +#if !__has_declspec_attribute(fallthrough) + int does_not_have_declspec_fallthrough(); +#endif |