Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/nontype-class41.C

raw
1 // PR c++/96268
2 // { dg-do compile { target c++20 } }
3
4 template <int N>
5 struct static_string { char chars[N]; /* operator<=> */ };
6
7 template <int N>
8 static_string(char const(&)[N]) -> static_string<N>;
9
10 static_string hi = {"hi"};
11
12 template <static_string str> struct name {};
13 using Hi = name<{"hi"}>;