36 lines · cpp
1// RUN: %clang_cc1 -std=c++2a -emit-pch %s -o %t2// RUN: %clang_cc1 -std=c++2a -include-pch %t -verify %s3 4// RUN: %clang_cc1 -std=c++2a -emit-pch -fpch-instantiate-templates %s -o %t5// RUN: %clang_cc1 -std=c++2a -include-pch %t -verify %s6 7// expected-no-diagnostics8 9#ifndef HEADER10#define HEADER11 12template<typename... T>13concept C = true;14 15namespace n {16 template<typename... T>17 concept C = true;18}19 20void f() {21 (void)C<int>;22 (void)C<int, void>;23 (void)n::C<void>;24}25 26#else /*included pch*/27 28int main() {29 (void)C<int>;30 (void)C<int, void>;31 (void)n::C<void>;32 f();33}34 35#endif // HEADER36