working-directory.cpp 450 B

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