aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/desig10.C
blob: 7fb68683853a3030b3b8e126fdd92e9eea1378cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/71446
// { dg-do compile { target c++11 } }
// { dg-options "" }

#include <initializer_list>

struct S { int value; };

int foo (S);
char *foo (std::initializer_list<int>);

int x = foo ({.value = 0});