[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / ClangScanDeps / _Pragma-once.c
blob573f82c85698f778d529819e764db903f3f290c3
1 // Test scanning deps works with _Pragma syntax when not inside a macro.
3 // RUN: rm -rf %t
4 // RUN: split-file %s %t
5 // RUN: sed "s|DIR|%/t|g" %t/cdb.json.template > %t/cdb.json
7 // RUN: clang-scan-deps -compilation-database %t/cdb.json -j 1
9 //--- cdb.json.template
11 "directory": "DIR",
12 "command": "clang -fsyntax-only DIR/tu.c",
13 "file": "DIR/tu.c"
16 //--- a.h
17 _Pragma("once")
18 #include "b.h"
20 //--- b.h
21 #include "a.h"
23 //--- tu.c
24 #include "a.h"