[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git] / clang / test / PCH / working-directory.cpp
blobe77d31b4be617ae4b55373d480d0398cec46b48c
1 // Test this without pch.
2 // RUN: %clang_cc1 -working-directory %S -I. -include working-directory.h %s -Wunused
4 // Test with pch.
5 // RUN: %clang_cc1 -working-directory %S -x c++-header -emit-pch -o %t.pch -I. working-directory.h
6 // RUN: %clang_cc1 -include-pch %t.pch -fsyntax-only %s -Wunused
8 void f() {
9 // Instantiating A<char> will trigger a warning, which will end up trying to get the path to
10 // the header that contains A.
11 A<char> b;