blob: 06e50db35c4df10ab75584c0226616289b7e0bab [file] [log] [blame]
Yaxun Liuadb58e72016-12-19 02:55:53 +00001// RUN: %clang_cc1 -Wno-objc-root-class -o /dev/null -triple x86_64-- -emit-llvm %s
2// REQUIRES: asserts
3// Verify there is no assertion.
4
5@interface A
6@end
7
8extern A *a;
9
10@interface X
11@end
12
13@implementation X
14
15-(void)test {
16 struct S {
17 A *a;
18 int b;
19 };
20 struct S s[] = {{a, 0}, {(void *)0, 0}};
21}
22@end