2019-06-20 07:33:55 +08:00
|
|
|
// FIXME: Figure out how to use %clang_analyze_cc1 with our lit.local.cfg.
|
|
|
|
// RUN: %clang_cc1 -analyze -triple x86_64-unknown-linux-gnu \
|
|
|
|
// RUN: -analyzer-checker=core \
|
|
|
|
// RUN: -analyzer-dump-egraph=%t.dot %s
|
|
|
|
// RUN: %exploded_graph_rewriter %t.dot | FileCheck %s
|
2019-06-20 17:58:58 +08:00
|
|
|
// REQUIRES: asserts
|
2019-06-20 07:33:55 +08:00
|
|
|
|
2019-06-25 10:16:56 +08:00
|
|
|
void escapes() {
|
2019-08-14 07:04:56 +08:00
|
|
|
// CHECK: <td align="left"><b>Store: </b> <font color="gray">(0x{{[0-9a-f]*}})</font></td>
|
2019-06-20 07:33:55 +08:00
|
|
|
// CHECK-SAME: <td align="left">foo</td><td align="left">0</td>
|
|
|
|
// CHECK-SAME: <td align="left">&Element\{"foo",0 S64b,char\}</td>
|
2019-10-19 04:15:41 +08:00
|
|
|
// CHECK: <td align="left"><b>Expressions: </b></td>
|
2019-06-20 07:33:55 +08:00
|
|
|
// CHECK-SAME: <td align="left">"foo"</td>
|
|
|
|
// CHECK-SAME: <td align="left">&Element\{"foo",0 S64b,char\}</td>
|
2019-06-25 11:08:32 +08:00
|
|
|
const char *const foo = "\x66\x6f\x6f";
|
2019-06-25 10:16:56 +08:00
|
|
|
|
2019-07-02 10:17:53 +08:00
|
|
|
// CHECK: <font color="cyan4">BinaryOperator</font>
|
2019-06-25 10:16:56 +08:00
|
|
|
// CHECK-SAME: <td align="left">1 \| 2</td>
|
|
|
|
// CHECK-SAME: <td align="left">3 S32b</td>
|
|
|
|
int x = 1 | 2;
|
2019-06-20 07:33:55 +08:00
|
|
|
}
|