// RUN: %clang_cc1 -triple x86_64-unknown-unknown -std=c++2a -ast-dump -ast-dump-filter Foo %s | FileCheck -strict-whitespace %s // Test with serialization: // RUN: %clang_cc1 -std=c++20 -triple x86_64-unknown-unknown -emit-pch -o %t %s // RUN: %clang_cc1 -x c++ -std=c++20 -triple x86_64-unknown-unknown -include-pch %t \ // RUN: -ast-dump-all -ast-dump-filter Foo /dev/null \ // RUN: | FileCheck --strict-whitespace %s template concept unary_concept = true; template concept binary_concept = true; template concept variadic_concept = true; template struct Foo { // CHECK: TemplateTypeParmDecl {{.*}} referenced Concept {{.*}} 'binary_concept' // CHECK-NEXT: `-ConceptSpecializationExpr {{.*}} 'bool' Concept {{.*}} 'binary_concept' // CHECK-NEXT: |-TemplateArgument {{.*}} type 'R' // CHECK-NEXT: | `-TemplateTypeParmType {{.*}} 'R' // CHECK-NEXT: | `-TemplateTypeParm {{.*}} 'R' // CHECK-NEXT: `-TemplateArgument {{.*}} type 'int' // CHECK-NEXT: `-BuiltinType {{.*}} 'int' template R> Foo(R); // CHECK: TemplateTypeParmDecl {{.*}} referenced Concept {{.*}} 'unary_concept' // CHECK-NEXT: `-ConceptSpecializationExpr {{.*}} 'bool' template Foo(R); // CHECK: FunctionTemplateDecl {{.*}} {{.*}} Foo template Foo(R, int) requires unary_concept; // CHECK: FunctionTemplateDecl {{.*}} {{.*}} Foo template Foo(R, char) requires unary_concept { } // CHECK: CXXFoldExpr {{.*}} template Foo(); // CHECK: CXXFoldExpr {{.*}} template ... Ts> Foo(); };