diff options
| author | John McCall <rjmccall@apple.com> | 2013-02-23 01:15:17 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2013-02-23 01:15:17 +0000 |
| commit | 185b5ee70820dcd025859f47a2b2bce06662b9a9 (patch) | |
| tree | 432327fc9321d8f005f1e538e88865fcd91b8d7c /clang/test/CodeGen/visibility.c | |
| parent | e6cedc1296f66587c22aec5984f14190cd0bb2a3 (diff) | |
| download | bcm5719-llvm-185b5ee70820dcd025859f47a2b2bce06662b9a9.tar.gz bcm5719-llvm-185b5ee70820dcd025859f47a2b2bce06662b9a9.zip | |
Test that attribute(availability) doesn't override private_extern.
rdar://12399248
llvm-svn: 175943
Diffstat (limited to 'clang/test/CodeGen/visibility.c')
| -rw-r--r-- | clang/test/CodeGen/visibility.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGen/visibility.c b/clang/test/CodeGen/visibility.c index fa4b5993092..3082b7b6ea6 100644 --- a/clang/test/CodeGen/visibility.c +++ b/clang/test/CodeGen/visibility.c @@ -67,3 +67,10 @@ __private_extern__ void test3(void) {} // Top of file. extern int test4; __private_extern__ int test4 = 10; + +// rdar://12399248 +// CHECK-DEFAULT: define hidden void @test5() +// CHECK-PROTECTED: define hidden void @test5() +// CHECK-HIDDEN: define hidden void @test5() +__attribute__((availability(macosx,introduced=10.5,deprecated=10.6))) +__private_extern__ void test5(void) {} |

