[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / PCH / cxx2a-requires-expr.cpp
blob7f8f258a0f8f3cf65172ea4523fb248638e88603
1 // RUN: %clang_cc1 -emit-pch -std=c++2a -o %t %s
2 // RUN: %clang_cc1 -std=c++2a -x ast -ast-print %t | FileCheck %s
4 // RUN: %clang_cc1 -emit-pch -std=c++2a -fpch-instantiate-templates -o %t %s
5 // RUN: %clang_cc1 -std=c++2a -x ast -ast-print %t | FileCheck %s
7 template<typename T>
8 concept C = true;
10 template<typename T, typename U>
11 concept C2 = true;
13 template<typename T>
14 bool f() {
15 // CHECK: requires (T t) { t++; { t++ } noexcept -> C; { t++ } -> C2<int>; typename T::a; requires T::val; requires C<typename T::val> || (C<typename T::val> || C<T>); };
16 return requires (T t) {
17 t++;
18 { t++ } noexcept -> C;
19 { t++ } -> C2<int>;
20 typename T::a;
21 requires T::val;
22 requires C<typename T::val> || (C<typename T::val> || C<T>);