[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git] / clang / test / Tooling / clang-check-extra-arg.cpp
blob488497edd4e8102431e485882e5f9ec97be964ea
1 /// Check we do not report "argument unused during compilation: '-c'"
2 // RUN: clang-check "%s" -extra-arg=-Wunimplemented-warning -extra-arg-before=-Wunimplemented-warning-before -- -c 2>&1 | FileCheck %s --implicit-check-not='argument unused'
3 // RUN: clang-check "%s" -extra-arg=-Wunimplemented-warning -extra-arg-before=-Wunimplemented-warning-before -- -S -Xclang -S 2>&1 | FileCheck %s --implicit-check-not='argument unused'
5 // CHECK: unknown warning option '-Wunimplemented-warning-before'
6 // CHECK: unknown warning option '-Wunimplemented-warning'
8 // Check we do not crash with -extra-arg=-gsplit-dwarf (we did, under linux).
9 // RUN: clang-check "%s" -extra-arg=-gsplit-dwarf -- -c
11 void a(){}