brintos

brintos / llvm-project-archived public Read only

0
0
Text · 450 B · e77d31b Raw
13 lines · cpp
1// Test this without pch.2// RUN: %clang_cc1 -working-directory %S -I. -include working-directory.h %s -Wunused3 4// Test with pch.5// RUN: %clang_cc1 -working-directory %S -x c++-header -emit-pch -o %t.pch -I. working-directory.h6// RUN: %clang_cc1 -include-pch %t.pch -fsyntax-only %s -Wunused7 8void f() {9  // Instantiating A<char> will trigger a warning, which will end up trying to get the path to10  // the header that contains A.11  A<char> b;12}13