r175943 - Test that attribute(availability) doesn't override private_extern.
John McCall
rjmccall at apple.com
Fri Feb 22 17:15:17 PST 2013
Author: rjmccall
Date: Fri Feb 22 19:15:17 2013
New Revision: 175943
URL: http://llvm.org/viewvc/llvm-project?rev=175943&view=rev
Log:
Test that attribute(availability) doesn't override private_extern.
rdar://12399248
Modified:
cfe/trunk/test/CodeGen/visibility.c
Modified: cfe/trunk/test/CodeGen/visibility.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/visibility.c?rev=175943&r1=175942&r2=175943&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/visibility.c (original)
+++ cfe/trunk/test/CodeGen/visibility.c Fri Feb 22 19:15:17 2013
@@ -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) {}
More information about the cfe-commits
mailing list