Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Analysis / exploded-graph-rewriter / escapes.c
blob830e082730a84d86a8697418b53ef8da91971140
1 // FIXME: Figure out how to use %clang_analyze_cc1 with our lit.local.cfg.
2 // RUN: %clang_cc1 -analyze -triple x86_64-unknown-linux-gnu \
3 // RUN: -analyzer-checker=core \
4 // RUN: -analyzer-dump-egraph=%t.dot %s
5 // RUN: %exploded_graph_rewriter %t.dot | FileCheck %s
7 void escapes(void) {
8 // CHECK: <td align="left"><b>Store: </b> <font color="gray">(0x{{[0-9a-f]*}})</font></td>
9 // CHECK-SAME: <td align="left">foo</td><td align="left">0</td>
10 // CHECK-SAME: <td align="left">&amp;Element\{"foo",0 S64b,char\}</td>
11 // CHECK: <td align="left"><b>Expressions: </b></td>
12 // CHECK-SAME: <td align="left">"foo"</td>
13 // CHECK-SAME: <td align="left">&amp;Element\{"foo",0 S64b,char\}</td>
14 const char *const foo = "\x66\x6f\x6f";
16 // CHECK: <font color="cyan4">BinaryOperator</font>
17 // CHECK-SAME: <td align="left">1 \| 2</td>
18 // CHECK-SAME: <td align="left">3 S32b</td>
19 int x = 1 | 2;