diff options
author | Alex Lorenz <arphaman@gmail.com> | 2017-05-09 15:34:46 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2017-05-09 15:34:46 +0000 |
commit | 919b7c6542627389098e7adc5aed9bedf1438d3c (patch) | |
tree | e132830455b28fc760c9b73141aff0e3a996e947 /test/Parser | |
parent | e503002a06e7f271d59aef44079d55eedb7df7cf (diff) |
Add support for pretty platform names to `@available`/
`__builtin_available`
This commit allows us to use the macOS/iOS/tvOS/watchOS platform names in
`@available`/`__builtin_available`.
rdar://32067795
Differential Revision: https://reviews.llvm.org/D33000
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@302540 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser')
-rw-r--r-- | test/Parser/objc-available.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Parser/objc-available.m b/test/Parser/objc-available.m index a170721240..49bc539306 100644 --- a/test/Parser/objc-available.m +++ b/test/Parser/objc-available.m @@ -21,6 +21,12 @@ void f() { (void)@available; // expected-error{{expected '('}} } +void prettyPlatformNames() { + (void)@available(iOS 8, tvOS 10, watchOS 3, macOS 10.11, *); + (void)__builtin_available(iOSApplicationExtension 8, tvOSApplicationExtension 10, + watchOSApplicationExtension 3, macOSApplicationExtension 10.11, *); +} + #if __has_builtin(__builtin_available) #error expected // expected-error@-1 {{expected}} |