From 185b5ee70820dcd025859f47a2b2bce06662b9a9 Mon Sep 17 00:00:00 2001 From: John McCall Date: Sat, 23 Feb 2013 01:15:17 +0000 Subject: [PATCH] Test that attribute(availability) doesn't override private_extern. rdar://12399248 llvm-svn: 175943 --- clang/test/CodeGen/visibility.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/clang/test/CodeGen/visibility.c b/clang/test/CodeGen/visibility.c index fa4b5993092c..3082b7b6ea6f 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) {}