diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-03-08 00:40:32 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-03-08 00:40:32 +0000 |
commit | d5d796ecdee7e8b80d1f912f03b80ba70db61011 (patch) | |
tree | 8c4f0bffc85412a732135aba83bb71f4024c0742 /clang/test/Preprocessor/has_attribute.cpp | |
parent | 6543a9385f3b22993b313b97a2593f86830d918e (diff) | |
download | bcm5719-llvm-d5d796ecdee7e8b80d1f912f03b80ba70db61011.tar.gz bcm5719-llvm-d5d796ecdee7e8b80d1f912f03b80ba70db61011.zip |
Define __has_cpp_attribute(fallthrough) to a more reasonable value. (What year is it?!)
llvm-svn: 262887
Diffstat (limited to 'clang/test/Preprocessor/has_attribute.cpp')
-rw-r--r-- | clang/test/Preprocessor/has_attribute.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/has_attribute.cpp b/clang/test/Preprocessor/has_attribute.cpp index 1ab45020b44..2cfa005fb09 100644 --- a/clang/test/Preprocessor/has_attribute.cpp +++ b/clang/test/Preprocessor/has_attribute.cpp @@ -52,6 +52,16 @@ int has_cxx14_deprecated_vers(); #endif +// CHECK: has_cxx1z_nodiscard +#if __has_cpp_attribute(nodiscard) == 201603 + int has_cxx1z_nodiscard(); +#endif + +// CHECK: has_cxx1z_fallthrough +#if __has_cpp_attribute(fallthrough) == 201603 + int has_cxx1z_fallthrough(); +#endif + // CHECK: has_declspec_uuid #if __has_declspec_attribute(uuid) int has_declspec_uuid(); |