forked from OSchip/llvm-project
Merge several visibility tests into hidden-visibility.m, and check .ll output
not .s output. llvm-svn: 89083
This commit is contained in:
parent
84efacfaad
commit
7e4ae04bed
|
@ -1,6 +0,0 @@
|
|||
// RUN: clang-cc -fvisibility=hidden -fobjc-nonfragile-abi -S -o - %s | grep -e "private_extern _OBJC_" | count 2
|
||||
|
||||
@interface INTF @end
|
||||
|
||||
@implementation INTF @end
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
// RUN: clang-cc -fobjc-nonfragile-abi -fvisibility=hidden -S -o - %s | grep -e "private_extern _OBJC_IVAR_"
|
||||
@interface I
|
||||
{
|
||||
int P;
|
||||
}
|
||||
|
||||
@property int P;
|
||||
@end
|
||||
|
||||
@implementation I
|
||||
@synthesize P;
|
||||
@end
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
// RUN: clang-cc -fvisibility=hidden -fobjc-nonfragile-abi -emit-llvm -o - %s | FileCheck %s
|
||||
// CHECK: @"OBJC_IVAR_$_I.P" = hidden
|
||||
// CHECK: @"OBJC_CLASS_$_I" = hidden
|
||||
// CHECK: @"OBJC_METACLASS_$_I" = hidden
|
||||
// CHECK: @"\01l_OBJC_PROTOCOL_$_Prot0" = weak hidden
|
||||
|
||||
@interface I {
|
||||
int P;
|
||||
}
|
||||
|
||||
@property int P;
|
||||
@end
|
||||
|
||||
@implementation I
|
||||
@synthesize P;
|
||||
@end
|
||||
|
||||
|
||||
@protocol Prot0;
|
||||
|
||||
id f0() {
|
||||
return @protocol(Prot0);
|
||||
}
|
||||
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
// RUN: clang-cc -fobjc-nonfragile-abi -S -o - %s | grep -e "private_extern l_OBJC_PROTOCOL_" | count 2
|
||||
|
||||
@interface FOO @end
|
||||
|
||||
@interface NSObject @end
|
||||
|
||||
@protocol SSHIPCProtocolHandler_BDC;
|
||||
|
||||
typedef NSObject<SSHIPCProtocolHandler_BDC> _SSHIPCProtocolHandler_BDC;
|
||||
|
||||
@interface SSHIPC_v2_RPFSProxy
|
||||
@property(nonatomic,readonly,retain) _SSHIPCProtocolHandler_BDC* protocolHandler_BDC;
|
||||
@end
|
||||
|
||||
@implementation FOO
|
||||
- (_SSHIPCProtocolHandler_BDC*) protocolHandler_BDC {@protocol(SSHIPCProtocolHandler_BDC); }
|
||||
@end
|
||||
|
||||
|
Loading…
Reference in New Issue