aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/desig29.C
blob: bd1a82b041dd3bd0bd4fa86dcc3600c647ec1cf4 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/110114
// { dg-do compile { target c++20 } }

struct B;

void foo(const B &) {}

int main() {
    foo({.a=0}); // { dg-error "invalid" }
}