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 | 1c8278b4bc83fafd29eead80ff4e5814fce7fd9b (patch) | |
tree | c8bd342e8c03eae9c869914b371f43d642a3b71a | |
parent | b07805485c603be3d8011f72611465324c9e664b (diff) |
Test that attribute(availability) doesn't override private_extern.
rdar://12399248
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175943 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/visibility.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/visibility.c b/test/CodeGen/visibility.c index fa4b599309..3082b7b6ea 100644 --- a/test/CodeGen/visibility.c +++ b/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) {} |