[cfe-commits] r89083 - in /cfe/trunk/test/CodeGenObjC: class-obj-hidden-visibility.m hidden-synthesized-ivar.m hidden-visibility.m protocol-definition-hidden-visibility.m

Daniel Dunbar daniel at zuster.org
Tue Nov 17 02:04:28 PST 2009


Author: ddunbar
Date: Tue Nov 17 04:04:28 2009
New Revision: 89083

URL: http://llvm.org/viewvc/llvm-project?rev=89083&view=rev
Log:
Merge several visibility tests into hidden-visibility.m, and check .ll output
not .s output.

Added:
    cfe/trunk/test/CodeGenObjC/hidden-visibility.m
Removed:
    cfe/trunk/test/CodeGenObjC/class-obj-hidden-visibility.m
    cfe/trunk/test/CodeGenObjC/hidden-synthesized-ivar.m
    cfe/trunk/test/CodeGenObjC/protocol-definition-hidden-visibility.m

Removed: cfe/trunk/test/CodeGenObjC/class-obj-hidden-visibility.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/class-obj-hidden-visibility.m?rev=89082&view=auto

==============================================================================
--- cfe/trunk/test/CodeGenObjC/class-obj-hidden-visibility.m (original)
+++ cfe/trunk/test/CodeGenObjC/class-obj-hidden-visibility.m (removed)
@@ -1,6 +0,0 @@
-// RUN: clang-cc -fvisibility=hidden -fobjc-nonfragile-abi -S -o - %s | grep -e "private_extern _OBJC_" | count 2 
-
- at interface INTF @end
-
- at implementation INTF @end
-

Removed: cfe/trunk/test/CodeGenObjC/hidden-synthesized-ivar.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/hidden-synthesized-ivar.m?rev=89082&view=auto

==============================================================================
--- cfe/trunk/test/CodeGenObjC/hidden-synthesized-ivar.m (original)
+++ cfe/trunk/test/CodeGenObjC/hidden-synthesized-ivar.m (removed)
@@ -1,13 +0,0 @@
-// RUN: clang-cc -fobjc-nonfragile-abi -fvisibility=hidden -S -o - %s | grep -e "private_extern _OBJC_IVAR_"
- at interface I
-{
-	int P;
-}
-
- at property int P;
- at end
-
- at implementation I
- at synthesize P;
- at end
-

Added: cfe/trunk/test/CodeGenObjC/hidden-visibility.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/hidden-visibility.m?rev=89083&view=auto

==============================================================================
--- cfe/trunk/test/CodeGenObjC/hidden-visibility.m (added)
+++ cfe/trunk/test/CodeGenObjC/hidden-visibility.m Tue Nov 17 04:04:28 2009
@@ -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
+
+ at interface I {
+  int P;
+}
+
+ at property int P;
+ at end
+
+ at implementation I
+ at synthesize P;
+ at end
+
+
+ at protocol Prot0;
+
+id f0() {
+  return @protocol(Prot0);
+}
+
+

Removed: cfe/trunk/test/CodeGenObjC/protocol-definition-hidden-visibility.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/protocol-definition-hidden-visibility.m?rev=89082&view=auto

==============================================================================
--- cfe/trunk/test/CodeGenObjC/protocol-definition-hidden-visibility.m (original)
+++ cfe/trunk/test/CodeGenObjC/protocol-definition-hidden-visibility.m (removed)
@@ -1,19 +0,0 @@
-// RUN: clang-cc -fobjc-nonfragile-abi  -S -o - %s | grep -e "private_extern l_OBJC_PROTOCOL_" | count 2
-
- at interface FOO @end
-
- at interface NSObject @end
-
- at protocol SSHIPCProtocolHandler_BDC;
-
-typedef NSObject<SSHIPCProtocolHandler_BDC> _SSHIPCProtocolHandler_BDC;
-
- at interface SSHIPC_v2_RPFSProxy
- at property(nonatomic,readonly,retain) _SSHIPCProtocolHandler_BDC* protocolHandler_BDC;
- at end
-
- at implementation FOO
-- (_SSHIPCProtocolHandler_BDC*) protocolHandler_BDC {@protocol(SSHIPCProtocolHandler_BDC); }
- at end
-
-





More information about the cfe-commits mailing list