2 // RUN: split-file %s %t
3 // RUN: sed -e "s|DIR|%/t|g" %t/compile-commands.json.in > %t/compile-commands.json
5 // RUN: clang-scan-deps -compilation-database %t/compile-commands.json -j 1 -format experimental-full \
6 // RUN: -mode preprocess-dependency-directives > %t/output
7 // RUN: FileCheck %s < %t/output
9 // CHECK: "-disable-free",
11 //--- compile-commands.json.in
15 "command": "clang -c DIR/main.c -fmodules -fmodules-cache-path=DIR/module-cache -fimplicit-modules -fimplicit-module-maps",
19 //--- module.modulemap