repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git]
/
clang
/
test
/
CodeGenObjC
/
nullptr-assert.m
blob
06e50db35c4df10ab75584c0226616289b7e0bab
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