summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/pragma-attribute.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-04-20 09:35:02 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-04-20 09:35:02 +0000
commit472cc7908646c39c2861bd5e19d858d931fef789 (patch)
treebf6be9bae5f6d71c9c260459b4d3fd9abb65d1e8 /clang/test/Parser/pragma-attribute.cpp
parent65f1d52ce678a85dda8ac284b908a4f215401b28 (diff)
downloadbcm5719-llvm-472cc7908646c39c2861bd5e19d858d931fef789.tar.gz
bcm5719-llvm-472cc7908646c39c2861bd5e19d858d931fef789.zip
Add #pragma clang attribute support to the availability attribute
rdar://31707804 llvm-svn: 300826
Diffstat (limited to 'clang/test/Parser/pragma-attribute.cpp')
-rw-r--r--clang/test/Parser/pragma-attribute.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Parser/pragma-attribute.cpp b/clang/test/Parser/pragma-attribute.cpp
index b28ec8c2c86..f0ebca2c531 100644
--- a/clang/test/Parser/pragma-attribute.cpp
+++ b/clang/test/Parser/pragma-attribute.cpp
@@ -122,9 +122,9 @@ void function();
#pragma clang attribute push (__attribute__((annotate)) foo) // expected-error {{expected ','}}
#pragma clang attribute push (__attribute__((annotate)), apply_to=function foo) // expected-error {{extra tokens after attribute in a '#pragma clang attribute push'}}
-#pragma clang attribute push (__attribute__((availability(macos, foo=1))), apply_to=function) // expected-error {{'foo' is not an availability stage; use 'introduced', 'deprecated', or 'obsoleted'}}
-// expected-error@-1 {{attribute 'availability' is not supported by '#pragma clang attribute'}}
-#pragma clang attribute push (__attribute__((availability(macos, 1))), apply_to=function) // expected-error {{expected 'introduced', 'deprecated', or 'obsoleted'}}
+#pragma clang attribute push (__attribute__((objc_bridge_related)), apply_to=function)
+// expected-error@-1 {{attribute 'objc_bridge_related' is not supported by '#pragma clang attribute'}}
+#pragma clang attribute push (__attribute__((objc_bridge_related(1))), apply_to=function) // expected-error {{expected a related ObjectiveC class name, e.g., 'NSColor'}}
#pragma clang attribute push (__attribute__((used)), apply_to=function) // expected-error {{attribute 'used' is not supported by '#pragma clang attribute'}}
OpenPOWER on IntegriCloud