Debian Codegraph @

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

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 }