Debian Codegraph @

gcc/testsuite/g++.dg/concepts/abbrev8.C

raw
1 // PR c++/98990
2 // { dg-do compile { target concepts } }
3
4 int x;
5
6 auto& f() { return x; }
7 auto& f(auto) { return x; }
8
9 using T1 = int&;
10 using T1 = decltype(f('a'));
11
12 int* y;
13
14 template <class>
15 struct S
16 {
17 static auto** f() { return &y; }
18 static auto** f(auto) { return &y; }
19 };
20
21 using T2 = int**;
22 using T2 = decltype(S<void>::f('a'));