PR libstdc++/87308 adjust regex used in std::any pretty printer
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / inline-var4.C
blobe9eb1902c0de0176956ec31761adf9623ec01bca
1 // PR c++/82782
2 // { dg-do compile { target c++17 } }
4 template <const auto& Value>
5 struct make_char_sequence;
7 template <int N, const char (&StringLiteral)[N]>
8 struct make_char_sequence<StringLiteral>
10   using type = int;
13 template <const auto& StringLiteral>
14 using make_char_sequence_t = typename make_char_sequence<StringLiteral>::type;
16 inline constexpr char sample[] = "Sample";
18 using X = make_char_sequence_t<sample>;