]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGenObjC/ivar-layout-array0-struct.m
Vendor import of clang release_30 branch r142614:
[FreeBSD/FreeBSD.git] / test / CodeGenObjC / ivar-layout-array0-struct.m
1 // REQUIRES: x86-64-registered-target
2 // RUN: %clang_cc1 -fobjc-gc -triple x86_64-apple-darwin -fobjc-fragile-abi -O0 -S %s -o %t-64.s
3 // RUN: FileCheck -check-prefix LP64 --input-file=%t-64.s %s
4
5 // rdar://8800513
6 @interface NSObject {
7   id isa;
8 }
9 @end
10
11 typedef struct {
12     id b;
13 } st;
14
15 @interface Test : NSObject {
16     int a;
17     st b[0];
18 }
19 @end
20
21 @implementation Test @end
22 // CHECK-LP64: L_OBJC_CLASS_NAME_4:
23 // CHECK-LP64-NEXT: .asciz      "\001\020"