Debian Codegraph @

gcc/testsuite/g++.dg/other/error36.C

raw
1 // PR c++/106983
2 // { dg-do compile { target c++20 } }
3
4 typedef unsigned long long A;
5 typedef union
6 {
7 struct B s; // { dg-error "incomplete" }
8 A a;
9 } U;
10 void f (A x, unsigned int b)
11 {
12 const U y = {.a = x};
13 }