Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / other / error36.C
blob556287816fd4891563884dc3f802f7d43b3e6f9e
1 // PR c++/106983
2 // { dg-do compile { target c++20 } }
4 typedef unsigned long long A;
5 typedef union
7   struct B s; // { dg-error "incomplete" }
8   A a;
9 } U;
10 void f (A x, unsigned int b)
12   const U y = {.a = x};