aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/desig28.C
blob: b63265fea514469b8f09ef26db6a1ab70cb28880 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR c++/110114
// { dg-do compile { target c++20 } }

struct A {
    int a,b;
};

struct B;

void foo(const A &) {}
void foo(const B &) {}

int
main ()
{
  foo({.a=0});
}