Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/class-deduction-aggr7.C

raw
1 // { dg-do compile { target c++20 } }
2
3 template <class T, int N>
4 struct A
5 {
6 T ar[N];
7 };
8
9 A a = { "foo" };
10
11 template<class, class> struct same;
12 template<class T> struct same<T,T> {};
13 same<decltype (a.ar), char[4]> s;
14