[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Analysis / exploded-graph-rewriter / win_path_forbidden_chars.cpp
blob5b955a0aae3ec10d3759f8122eed628bd9e42c51
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 --verbose %t.dot 2>&1 | FileCheck %s
6 // REQUIRES: system-windows
8 // Angle brackets shall not be presented in the field `file`,
9 // because exploded_graph_rewriter handles it as a file path
10 // and such symbols are forbidden on Windows platform.
12 void test() {
13 // This produces angle brackets.
14 char text[] = __FILE__;
17 // This test is passed if exploded_graph_rewriter handles dot file without errors.
18 // CHECK: DEBUG:root:Line: digraph "Exploded Graph"
19 // CHECK: \"file\": \"scratch space\"