From d6ce22cd40c0a1fe7382158eab78e271796ca489 Mon Sep 17 00:00:00 2001 From: John McCall Date: Tue, 13 Sep 2011 07:24:27 +0000 Subject: [PATCH] This test seems pretty low-value. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139589 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGenObjC/property-aggr-type.m | 50 --------------------------- 1 file changed, 50 deletions(-) delete mode 100644 test/CodeGenObjC/property-aggr-type.m diff --git a/test/CodeGenObjC/property-aggr-type.m b/test/CodeGenObjC/property-aggr-type.m deleted file mode 100644 index 8ba87de353..0000000000 --- a/test/CodeGenObjC/property-aggr-type.m +++ /dev/null @@ -1,50 +0,0 @@ -// RUN: %clang_cc1 -emit-llvm -o %t %s - -@interface Object -- (id) new; -@end - -typedef struct {int x, y, w, h;} st1; -typedef struct {int x, y, w, h;} st2; - -@interface bar : Object -- (void)setFrame:(st1)frameRect; -@end - -@interface bar1 : Object -- (void)setFrame:(int)frameRect; -@end - -@interface foo : Object -{ - st2 ivar; -} -@property (assign) st2 frame; -@end - -@implementation foo -@synthesize frame = ivar; -@end - -extern void abort(); - -static st2 r = {1,2,3,4}; -st2 test (void) -{ - foo *obj = [foo new]; - id objid = [foo new];; - - obj.frame = r; - - ((foo*)objid).frame = obj.frame; - - return ((foo*)objid).frame; -} - -int main () -{ - st2 res = test (); - if (res.x != 1 || res.h != 4) - abort(); - return 0; -} -- 2.40.0