1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
// RUN: %clang_analyze_cc1 -triple x86_64-unknown-linux-gnu \
// RUN: -analyzer-checker=core \
// RUN: -analyzer-dump-egraph=%t.dot %s
// RUN: %exploded_graph_rewriter --verbose %t.dot 2>&1 | FileCheck %s
// REQUIRES: system-windows
// Angle brackets shall not be presented in the field `file`,
// because exploded_graph_rewriter handles it as a file path
// and such symbols are forbidden on Windows platform.
void test() {
// This produces angle brackets.
char text[] = __FILE__;
}
// This test is passed if exploded_graph_rewriter handles dot file without errors.
// CHECK: DEBUG:root:Line: digraph "Exploded Graph"
// CHECK: \"file\": \"scratch space\"
|