xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenObjC/ivar-layout-array0-struct.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// REQUIRES: x86-64-registered-target
2*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fobjc-gc -triple x86_64-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -S %s -o %t-64.s
3*f4a2713aSLionel Sambuc// RUN: FileCheck -check-prefix CHECK-LP64 --input-file=%t-64.s %s
4*f4a2713aSLionel Sambuc
5*f4a2713aSLionel Sambuc// rdar://8800513
6*f4a2713aSLionel Sambuc@interface NSObject {
7*f4a2713aSLionel Sambuc  id isa;
8*f4a2713aSLionel Sambuc}
9*f4a2713aSLionel Sambuc@end
10*f4a2713aSLionel Sambuc
11*f4a2713aSLionel Sambuctypedef struct {
12*f4a2713aSLionel Sambuc    id b;
13*f4a2713aSLionel Sambuc} st;
14*f4a2713aSLionel Sambuc
15*f4a2713aSLionel Sambuc@interface Test : NSObject {
16*f4a2713aSLionel Sambuc    int a;
17*f4a2713aSLionel Sambuc    st b[0];
18*f4a2713aSLionel Sambuc}
19*f4a2713aSLionel Sambuc@end
20*f4a2713aSLionel Sambuc
21*f4a2713aSLionel Sambuc@implementation Test @end
22*f4a2713aSLionel Sambuc// CHECK-LP64: L_OBJC_CLASS_NAME_4:
23*f4a2713aSLionel Sambuc// CHECK-LP64-NEXT: .asciz      "\001\020"
24