diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-17 10:04:28 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-17 10:04:28 +0000 |
commit | 7e4ae04bedf6cc10e34befbc7b69f7efd9496367 (patch) | |
tree | 634f8e7334f0788eb76fb6c4c7f3274b5f8eb3e4 | |
parent | 84efacfaaddd1023cb18ea98af77963dd5a627ec (diff) | |
download | bcm5719-llvm-7e4ae04bedf6cc10e34befbc7b69f7efd9496367.tar.gz bcm5719-llvm-7e4ae04bedf6cc10e34befbc7b69f7efd9496367.zip |
Merge several visibility tests into hidden-visibility.m, and check .ll output
not .s output.
llvm-svn: 89083
4 files changed, 25 insertions, 38 deletions
diff --git a/clang/test/CodeGenObjC/class-obj-hidden-visibility.m b/clang/test/CodeGenObjC/class-obj-hidden-visibility.m deleted file mode 100644 index 0135bbcac40..00000000000 --- a/clang/test/CodeGenObjC/class-obj-hidden-visibility.m +++ /dev/null @@ -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 - diff --git a/clang/test/CodeGenObjC/hidden-synthesized-ivar.m b/clang/test/CodeGenObjC/hidden-synthesized-ivar.m deleted file mode 100644 index c8d999003d5..00000000000 --- a/clang/test/CodeGenObjC/hidden-synthesized-ivar.m +++ /dev/null @@ -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 - diff --git a/clang/test/CodeGenObjC/hidden-visibility.m b/clang/test/CodeGenObjC/hidden-visibility.m new file mode 100644 index 00000000000..082ee7a70a3 --- /dev/null +++ b/clang/test/CodeGenObjC/hidden-visibility.m @@ -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); +} + + diff --git a/clang/test/CodeGenObjC/protocol-definition-hidden-visibility.m b/clang/test/CodeGenObjC/protocol-definition-hidden-visibility.m deleted file mode 100644 index f63bb03e5c9..00000000000 --- a/clang/test/CodeGenObjC/protocol-definition-hidden-visibility.m +++ /dev/null @@ -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 - - |