Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/pr88537.C

raw
1 // { dg-do compile { target c++20 } }
2 // { dg-options "-g" }
3
4 struct pair {
5 unsigned a;
6 unsigned b;
7 constexpr pair(unsigned _a, unsigned _b) noexcept: a{_a}, b{_b} { }
8 };
9
10 template <pair p> void fnc() {
11
12 }
13
14 void f() {
15 fnc<pair(10,20)>();
16 }