☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
pr88537.C
☽
☼
gcc/testsuite/g++.dg/cpp2a/pr88537.C
code
plain
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
}