summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/has_attribute.c
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-12-05 15:24:55 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-12-05 15:24:55 +0000
commita6f759e423940dd5357772372524daf469c40ff1 (patch)
treec376ec6d41375275bc7e571c8f32286baf460191 /clang/test/Preprocessor/has_attribute.c
parent3c0f9b4a7d0b26f23ea2227d6c58cec00d9c3459 (diff)
downloadbcm5719-llvm-a6f759e423940dd5357772372524daf469c40ff1.tar.gz
bcm5719-llvm-a6f759e423940dd5357772372524daf469c40ff1.zip
Modify __has_attribute so that it only looks for GNU-style attributes. Removes the ability to look for generic attributes and keywords via this macro, which has the potential to be a breaking change. However, since there is __has_cpp_attribute and __has_declspec_attribute, and given the limited usefulness of querying a generic attribute name regardless of syntax, this seems like the correct path forward.
llvm-svn: 223468
Diffstat (limited to 'clang/test/Preprocessor/has_attribute.c')
-rw-r--r--clang/test/Preprocessor/has_attribute.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/has_attribute.c b/clang/test/Preprocessor/has_attribute.c
index 5fe060e68d3..0ef5b4857a3 100644
--- a/clang/test/Preprocessor/has_attribute.c
+++ b/clang/test/Preprocessor/has_attribute.c
@@ -48,3 +48,8 @@ int has_no_volatile_attribute();
#if !__has_attribute(dllexport)
int does_not_have_dllexport();
#endif
+
+// CHECK: does_not_have_uuid
+#if !__has_attribute(uuid)
+ int does_not_have_uuid
+#endif
OpenPOWER on IntegriCloud