Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fvisibility hidden -fobjc-nonfragile-abi -emit-llvm -o - %s | FileCheck %s |
Daniel Dunbar | 3332646 | 2009-11-17 10:04:28 +0000 | [diff] [blame] | 2 | // CHECK: @"OBJC_IVAR_$_I.P" = hidden |
| 3 | // CHECK: @"OBJC_CLASS_$_I" = hidden |
| 4 | // CHECK: @"OBJC_METACLASS_$_I" = hidden |
| 5 | // CHECK: @"\01l_OBJC_PROTOCOL_$_Prot0" = weak hidden |
| 6 | |
| 7 | @interface I { |
| 8 | int P; |
| 9 | } |
| 10 | |
| 11 | @property int P; |
| 12 | @end |
| 13 | |
| 14 | @implementation I |
| 15 | @synthesize P; |
| 16 | @end |
| 17 | |
| 18 | |
| 19 | @protocol Prot0; |
| 20 | |
| 21 | id f0() { |
| 22 | return @protocol(Prot0); |
| 23 | } |
| 24 | |
| 25 | |