1 // Test this without pch.
2 // RUN: %clang_cc1 -fsyntax-only %s -DBODY
5 // RUN: %clang_cc1 -emit-pch -o %t %s
6 // RUN: %clang_cc1 -include-pch %t -fsyntax-only %s -DBODY
8 // Test with pch with template instantiation in the pch.
9 // RUN: %clang_cc1 -emit-pch -fpch-instantiate-templates -o %t %s -verify
17 void g() { f
<X
>(); } // @17 instantiation not performed yet
20 void f() { T t
; }; // @20
28 // expected-error@20 {{variable has incomplete type}}
29 // expected-note@17 {{in instantiation of function template specialization}}
30 // expected-note@16 {{forward declaration}}