150
|
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
|
|
6 // REQUIRES: asserts
|
|
7
|
|
8 // FIXME: Substitution doesn't seem to work on Windows.
|
|
9 // UNSUPPORTED: system-windows
|
|
10
|
|
11 // CHECK: macros.c:<b>17</b>:<b>10</b>
|
|
12 // CHECK-SAME: <font color="royalblue1">
|
|
13 // CHECK-SAME: (<i>spelling at </i> macros.c:<b>15</b>:<b>14</b>)
|
|
14 // CHECK-SAME: </font>
|
|
15 #define NULL 0
|
|
16 void *foo() {
|
|
17 return NULL;
|
|
18 }
|