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