1 // Test this without pch.
2 // RUN: %clang_cc1 -fsyntax-only -verify -DBODY %s
5 // RUN: %clang_cc1 -emit-pch -o %t %s
6 // RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify -DBODY %s
8 // RUN: %clang_cc1 -emit-pch -fpch-instantiate-templates -o %t %s
9 // RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify -DBODY %s
19 int bar(A
<double> *a
) {
28 int A
<double>::foo() const { // expected-error {{explicit specialization of 'foo' after instantiation}} // expected-note@20 {{implicit instantiation first required here}}