Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Analysis / novoidtypecrash.c
blob197516a25961875b9fcce16e1b099d30a192f399
1 // RUN: %clang_analyze_cc1 -std=c89 -Wno-int-conversion -analyzer-checker=core %s
2 x;
3 y(void **z) { // no-crash
4 *z = x;
5 int *w;
6 y(&w);
7 *w;
11 b(*c) {}
12 e(*c) {
13 void *d = f();
14 b(d);
15 *c = d;
17 void *g() {
18 e(&a);
19 return a;
21 j() {
22 int h;
23 char i = g();
24 if (i)
25 for (; h;)