summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/pragma-attribute-context.cpp
diff options
context:
space:
mode:
authorErik Pilkington <erik.pilkington@gmail.com>2019-03-20 19:26:37 +0000
committerErik Pilkington <erik.pilkington@gmail.com>2019-03-20 19:26:37 +0000
commit8ca6ab33b7d2bd10e885124405d6f26406256b9b (patch)
tree1e47a3e63cb8e893af851dc9322b365bff7d2a7f /clang/test/Parser/pragma-attribute-context.cpp
parent13ee62f7d7eed3303f13374b25b8e51d38b2951b (diff)
downloadbcm5719-llvm-8ca6ab33b7d2bd10e885124405d6f26406256b9b.tar.gz
bcm5719-llvm-8ca6ab33b7d2bd10e885124405d6f26406256b9b.zip
Add a __has_extension check for '#pragma clang attribute' as an external-declaration
This was added in r356075. llvm-svn: 356600
Diffstat (limited to 'clang/test/Parser/pragma-attribute-context.cpp')
-rw-r--r--clang/test/Parser/pragma-attribute-context.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Parser/pragma-attribute-context.cpp b/clang/test/Parser/pragma-attribute-context.cpp
index 3ec5a67f4c3..d893f18335e 100644
--- a/clang/test/Parser/pragma-attribute-context.cpp
+++ b/clang/test/Parser/pragma-attribute-context.cpp
@@ -1,6 +1,10 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin9.0.0 -verify -std=c++11 %s
// RUN: %clang_cc1 -triple x86_64-apple-darwin9.0.0 -xobjective-c++ -verify -std=c++11 %s
+#if !__has_extension(pragma_clang_attribute_external_declaration)
+#error
+#endif
+
#define BEGIN_PRAGMA _Pragma("clang attribute push (__attribute__((availability(macos, introduced=1000))), apply_to=function)")
#define END_PRAGMA _Pragma("clang attribute pop")
OpenPOWER on IntegriCloud