Debian Codegraph @

clang/test/CodeGenObjC/nullptr-assert.m

raw
1 // 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
8 extern 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