minix/external/bsd/llvm/dist/clang/test/PCH/working-directory.cpp
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

12 lines
450 B
C++

// Test this without pch.
// RUN: %clang_cc1 -working-directory %S -I. -include working-directory.h %s -Wunused
// Test with pch.
// RUN: %clang_cc1 -working-directory %S -x c++-header -emit-pch -o %t.pch -I. working-directory.h
// RUN: %clang_cc1 -include-pch %t.pch -fsyntax-only %s -Wunused
void f() {
// Instantiating A<char> will trigger a warning, which will end up trying to get the path to
// the header that contains A.
A<char> b;
}