brintos

brintos / llvm-project-archived public Read only

0
0
Text · 593 B · fb58c61 Raw
25 lines · c
1// RUN: rm -rf %t2// RUN: split-file %s %t3 4// This test checks that source files of modules undergo dependency directives5// scan. If a.h would not, the scan would fail when lexing `#error`.6 7//--- module.modulemap8module A { header "a.h" }9 10//--- a.h11#error blah12 13//--- tu.c14#include "a.h"15 16//--- cdb.json.in17[{18  "directory": "DIR",19  "file": "DIR/tu.c",20  "command": "clang -c DIR/tu.c -fmodules -fmodules-cache-path=DIR/cache"21}]22 23// RUN: sed -e "s|DIR|%/t|g" %t/cdb.json.in > %t/cdb.json24// RUN: clang-scan-deps -compilation-database %t/cdb.json -format experimental-full > %t/deps.json25