Merge several visibility tests into hidden-visibility.m, and check .ll output

not .s output.

llvm-svn: 89083
This commit is contained in:
Daniel Dunbar 2009-11-17 10:04:28 +00:00
parent 84efacfaad
commit 7e4ae04bed
4 changed files with 25 additions and 38 deletions

View File

@ -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

View File

@ -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

View File

@ -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);
}

View File

@ -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