annotate clang/test/Parser/cxx2a-abbreviated-templates.cpp @ 222:81f6424ef0e3 llvm-original

LLVM original branch
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 18 Jul 2021 22:10:01 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -std=c++2a -x c++ %s -verify
anatofuz
parents:
diff changeset
2 // expected-no-diagnostics
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 template<typename T, typename U=void>
anatofuz
parents:
diff changeset
5 concept C = true;
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 namespace ns {
anatofuz
parents:
diff changeset
8 template<typename T, typename U=void>
anatofuz
parents:
diff changeset
9 concept D = true;
anatofuz
parents:
diff changeset
10 }
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 void foo1(C auto a,
anatofuz
parents:
diff changeset
13 C<int> auto b,
anatofuz
parents:
diff changeset
14 ns::D auto c,
anatofuz
parents:
diff changeset
15 ns::D<int> auto d,
anatofuz
parents:
diff changeset
16 const C auto e,
anatofuz
parents:
diff changeset
17 const C<int> auto f,
anatofuz
parents:
diff changeset
18 const ns::D auto g,
anatofuz
parents:
diff changeset
19 const ns::D<int> auto h);
anatofuz
parents:
diff changeset
20 void foo2(C auto a);
anatofuz
parents:
diff changeset
21 void foo3(C<int> auto b);
anatofuz
parents:
diff changeset
22 void foo4(ns::D auto c);
anatofuz
parents:
diff changeset
23 void foo5(ns::D<int> auto d);
anatofuz
parents:
diff changeset
24 void foo6(const C auto e);
anatofuz
parents:
diff changeset
25 void foo7(const C<int> auto f);
anatofuz
parents:
diff changeset
26 void foo8(const ns::D auto g);
anatofuz
parents:
diff changeset
27 void foo9(const ns::D<int> auto h);
anatofuz
parents:
diff changeset
28
anatofuz
parents:
diff changeset
29 struct S1 { S1(C auto a,
anatofuz
parents:
diff changeset
30 C<int> auto b,
anatofuz
parents:
diff changeset
31 ns::D auto c,
anatofuz
parents:
diff changeset
32 ns::D<int> auto d,
anatofuz
parents:
diff changeset
33 const C auto e,
anatofuz
parents:
diff changeset
34 const C<int> auto f,
anatofuz
parents:
diff changeset
35 const ns::D auto g,
anatofuz
parents:
diff changeset
36 const ns::D<int> auto h); };
anatofuz
parents:
diff changeset
37 struct S2 { S2(C auto a); };
anatofuz
parents:
diff changeset
38 struct S3 { S3(C<int> auto b); };
anatofuz
parents:
diff changeset
39 struct S4 { S4(ns::D auto c); };
anatofuz
parents:
diff changeset
40 struct S5 { S5(ns::D<int> auto d); };
anatofuz
parents:
diff changeset
41 struct S6 { S6(const C auto e); };
anatofuz
parents:
diff changeset
42 struct S7 { S7(const C<int> auto f); };
anatofuz
parents:
diff changeset
43 struct S8 { S8(const ns::D auto g); };
anatofuz
parents:
diff changeset
44 struct S9 { S9(const ns::D<int> auto h); };