[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Analysis / solver-sym-simplification-no-crash.c
blobf90fad07f0c30c107b6213bb724d8915ce407deb
1 // RUN: %clang_analyze_cc1 %s \
2 // RUN: -analyzer-checker=core \
3 // RUN: -analyzer-checker=debug.ExprInspection \
4 // RUN: -verify
6 // Here, we test that symbol simplification in the solver does not produce any
7 // crashes.
9 // expected-no-diagnostics
11 static int a, b;
12 static long c;
14 static void f(int i, int j)
16 (void)(j <= 0 && i ? i : j);
19 static void g(void)
21 int d = a - b | (c < 0);
22 for (;;)
24 f(d ^ c, c);