[cfe-commits] r138180 - in /cfe/trunk/test/CodeGenObjC: 2010-02-01-utf16-with-null.m 2010-02-23-DbgInheritance.m 2010-03-17-StructRef.m 2011-03-08-IVarLookup.m
Eric Christopher
echristo at apple.com
Fri Aug 19 18:04:49 PDT 2011
Author: echristo
Date: Fri Aug 19 20:04:49 2011
New Revision: 138180
URL: http://llvm.org/viewvc/llvm-project?rev=138180&view=rev
Log:
Migrate, update and FileCheckize:
2010-02-01-utf16-with-null.m
2010-02-23-DbgInheritance.m
2010-03-17-StructRef.m
2011-03-08-IVarLookup.m
from llvm/test/FrontendObjC.
Added:
cfe/trunk/test/CodeGenObjC/2010-02-01-utf16-with-null.m
cfe/trunk/test/CodeGenObjC/2010-02-23-DbgInheritance.m
cfe/trunk/test/CodeGenObjC/2010-03-17-StructRef.m
cfe/trunk/test/CodeGenObjC/2011-03-08-IVarLookup.m
Added: cfe/trunk/test/CodeGenObjC/2010-02-01-utf16-with-null.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/2010-02-01-utf16-with-null.m?rev=138180&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenObjC/2010-02-01-utf16-with-null.m (added)
+++ cfe/trunk/test/CodeGenObjC/2010-02-01-utf16-with-null.m Fri Aug 19 20:04:49 2011
@@ -0,0 +1,5 @@
+// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
+// rdar://7589850
+
+// CHECK-NOT: __ustring
+void *P = @"good\0bye";
Added: cfe/trunk/test/CodeGenObjC/2010-02-23-DbgInheritance.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/2010-02-23-DbgInheritance.m?rev=138180&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenObjC/2010-02-23-DbgInheritance.m (added)
+++ cfe/trunk/test/CodeGenObjC/2010-02-23-DbgInheritance.m Fri Aug 19 20:04:49 2011
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -emit-llvm %s -g -o - | FileCheck %s
+// CHECK-NOT: DW_TAG_member
+// Interface P should not be a member of interface I in debug info.
+ at interface P
+ at end
+
+ at interface I : P
+ at end
+
+void fn(I *iptr) {}
Added: cfe/trunk/test/CodeGenObjC/2010-03-17-StructRef.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/2010-03-17-StructRef.m?rev=138180&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenObjC/2010-03-17-StructRef.m (added)
+++ cfe/trunk/test/CodeGenObjC/2010-03-17-StructRef.m Fri Aug 19 20:04:49 2011
@@ -0,0 +1,43 @@
+// RUN: %clang_cc1 %s -emit-llvm -triple x86_64-apple-darwin -o - | FileCheck %s
+// Bitfield references must not touch memory outside of the enclosing
+// struct. Radar 7639995
+typedef signed char BOOL;
+ at protocol NSObject
+- (id)init;
+ at end
+ at interface NSObject <NSObject> {}
+ at end
+ at interface IMAVChatParticipant : NSObject {
+ int _ardRole;
+ int _state;
+ int _avRelayStatus;
+ int _chatEndedReason;
+ int _chatError;
+ unsigned _sendingAudio:1;
+ unsigned _sendingVideo:1;
+ unsigned _sendingAuxVideo:1;
+ unsigned _audioMuted:1;
+ unsigned _videoPaused:1;
+ unsigned _networkStalled:1;
+ unsigned _isInitiator:1;
+ unsigned _isAOLInterop:1;
+ unsigned _isRecording:1;
+ unsigned _isUsingICE:1;
+}
+ at end
+ at implementation IMAVChatParticipant
+- (id) init {
+ self = [super init];
+ if ( self ) {
+ BOOL blah = (BOOL)1;
+ // We're expecting these three bitfield assignments will generate i8 stores.
+ _sendingAudio = (BOOL)1;
+ _isUsingICE = (BOOL)1;
+ _isUsingICE = blah;
+ // CHECK: store i8
+ // CHECK: store i8
+ // CHECK: store i8
+ }
+ return self;
+}
+ at end
Added: cfe/trunk/test/CodeGenObjC/2011-03-08-IVarLookup.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/2011-03-08-IVarLookup.m?rev=138180&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenObjC/2011-03-08-IVarLookup.m (added)
+++ cfe/trunk/test/CodeGenObjC/2011-03-08-IVarLookup.m Fri Aug 19 20:04:49 2011
@@ -0,0 +1,32 @@
+// RUN: %clang -S -emit-llvm -m64 -fobjc-abi-version=2 %s -o /dev/null
+// XFAIL: *
+// XTARGET: darwin
+
+typedef unsigned int UInt_t;
+
+ at interface A
+{
+ at protected
+ UInt_t _f1;
+}
+ at end
+
+ at interface B : A { }
+ at end
+
+ at interface A ()
+ at property (assign) UInt_t f1;
+ at end
+
+ at interface B ()
+ at property (assign) int x;
+ at end
+
+ at implementation B
+ at synthesize x;
+- (id) init
+{
+ _f1 = 0;
+ return self;
+}
+ at end
More information about the cfe-commits
mailing list