[flang] Fix crash in HLFIR generation (#118399)
[llvm-project.git] / clang / test / ClangScanDeps / strip_diag_serialize.cpp
blobc8713be7f3b7bfb55e2865eb3b134e3ae86d4978
1 // RUN: rm -rf %t.dir
2 // RUN: rm -rf %t.cdb
3 // RUN: mkdir -p %t.dir
4 // RUN: cp %s %t.dir/strip_diag_serialize_input.cpp
5 // RUN: cp %s %t.dir/strip_diag_serialize_input_clangcl.cpp
6 // RUN: sed -e "s|DIR|%/t.dir|g" %S/Inputs/strip_diag_serialize.json > %t.cdb
7 //
8 // RUN: clang-scan-deps -compilation-database %t.cdb -j 1 2>&1 | FileCheck %s
9 // CHECK-NOT: unable to open file
10 // CHECK: strip_diag_serialize_input.cpp
12 #warning "diagnostic"