2016-07-18 06:54:42 +08:00
|
|
|
// RUN: %clang_cc1 -triple i386-apple-macosx -fvisibility hidden -emit-llvm -o - %s | FileCheck %s
|
2009-11-17 18:04:28 +08:00
|
|
|
// CHECK: @"OBJC_IVAR_$_I.P" = hidden
|
|
|
|
// CHECK: @"OBJC_CLASS_$_I" = hidden
|
|
|
|
// CHECK: @"OBJC_METACLASS_$_I" = hidden
|
2019-03-14 23:17:37 +08:00
|
|
|
// CHECK: @"_OBJC_PROTOCOL_$_Prot0" = weak hidden
|
2009-11-17 18:04:28 +08:00
|
|
|
|
|
|
|
@interface I {
|
|
|
|
int P;
|
|
|
|
}
|
|
|
|
|
|
|
|
@property int P;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation I
|
|
|
|
@synthesize P;
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
2018-08-18 06:18:08 +08:00
|
|
|
@protocol Prot0 @end
|
2009-11-17 18:04:28 +08:00
|
|
|
|
|
|
|
id f0() {
|
|
|
|
return @protocol(Prot0);
|
|
|
|
}
|
|
|
|
|
|
|
|
|