☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
desig28.C
☽
☼
gcc/testsuite/g++.dg/cpp2a/desig28.C
code
plain
raw
1
// PR c++/110114
2
// { dg-do compile { target c++20 } }
3
4
struct A {
5
int a,b;
6
};
7
8
struct B;
9
10
void foo(const A &) {}
11
void foo(const B &) {}
12
13
int
14
main ()
15
{
16
foo({.a=0});
17
}