diff options
| author | Jordan Rose <jordan_rose@apple.com> | 2015-07-16 22:30:10 +0000 |
|---|---|---|
| committer | Jordan Rose <jordan_rose@apple.com> | 2015-07-16 22:30:10 +0000 |
| commit | 7e5de9c96beb1bb47a34d974c7939bf37c2c5605 (patch) | |
| tree | 7c909720cd28cfb6de421ced4cf3116c4bfb359a /clang/test/SemaObjC/attr-availability-1.m | |
| parent | 594896fc8ad1a6e3a454fbeed8d529099636259e (diff) | |
| download | bcm5719-llvm-7e5de9c96beb1bb47a34d974c7939bf37c2c5605.tar.gz bcm5719-llvm-7e5de9c96beb1bb47a34d974c7939bf37c2c5605.zip | |
Add __has_feature(attribute_availability_with_version_underscores).
This goes with r218884 from, um, last autumn.
rdar://problem/21754114
llvm-svn: 242480
Diffstat (limited to 'clang/test/SemaObjC/attr-availability-1.m')
| -rw-r--r-- | clang/test/SemaObjC/attr-availability-1.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/attr-availability-1.m b/clang/test/SemaObjC/attr-availability-1.m index 063407adaee..d694cbd80da 100644 --- a/clang/test/SemaObjC/attr-availability-1.m +++ b/clang/test/SemaObjC/attr-availability-1.m @@ -3,6 +3,10 @@ // RUN: %clang_cc1 -x objective-c++ -std=c++03 -triple x86_64-apple-darwin9.0.0 -fsyntax-only -verify %s // rdar://18490958 +#if !__has_feature(attribute_availability_with_version_underscores) +# error "missing feature" +#endif + @protocol P - (void)proto_method __attribute__((availability(macosx,introduced=10_1,deprecated=10_2))); // expected-note 2 {{'proto_method' has been explicitly marked deprecated here}} @end |

