blob: e77d31b4be617ae4b55373d480d0398cec46b48c [file] [log] [blame]
Anders Carlsson2c10c802011-03-08 16:04:35 +00001// Test this without pch.
2// RUN: %clang_cc1 -working-directory %S -I. -include working-directory.h %s -Wunused
3
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
7
8void 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;
12}