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