xref: /llvm-project/clang/test/ClangScanDeps/no-werror.cpp (revision 6bb836af2a60a11580c97c92487e4cf644ca051a)
1 // RUN: rm -rf %t.dir
2 // RUN: rm -rf %t.cdb
3 // RUN: mkdir -p %t.dir
4 // RUN: cp %s %t.dir/no-werror_input.cpp
5 // RUN: cp %s %t.dir/no-werror_input_clangcl.cpp
6 // RUN: mkdir %t.dir/Inputs
7 // RUN: cp %S/Inputs/sys-header.h %t.dir/Inputs/sys-header.h
8 // RUN: sed -e "s|DIR|%/t.dir|g" %S/Inputs/no-werror.json > %t.cdb
9 //
10 // RUN: clang-scan-deps -compilation-database %t.cdb -j 1 | FileCheck %s
11 
12 #define MACRO 201411L
13 
14 #include "sys-header.h"
15 
16 // CHECK: no-werror_input.cpp
17 // CHECK-NEXT: Inputs{{/|\\}}sys-header.h
18 
19 // CHECK: no-werror_input_clangcl.cpp
20 // CHECK-NEXT: Inputs{{/|\\}}sys-header.h
21