// This checks that there's no issue with the preprocessor handling user or built-in macro
// expansion during dependency scanning.
// RUN: rm -rf %t
// RUN: split-file %s %t
// RUN: sed -e "s|DIR|%/t|g" %t/cdb.json.template > %t/cdb.json
// RUN: clang-scan-deps -compilation-database %t/cdb.json | FileCheck %s
// CHECK: test.o:
// CHECK-NEXT: test.cpp
// CHECK-NEXT: header1.h
// CHECK-NEXT: header2.h
//--- cdb.json.template
//--- test.cpp
//--- header1.h
//--- header2.h