1 /* PR c/71552 - Confusing error for incorrect struct initialization */
2 /* { dg-do compile } */
5 struct B
{ struct A
*p
; };
8 /* Verify that the initializer is diagnosed for its incompatibility
9 with the type of the object being initialized, not for its lack
10 of constness (which is a lesser problem). */
11 struct B b
= { a
}; /* { dg-error "incompatible types when initializing" } */
12 struct B
*p
= a
; /* { dg-error "incompatible types when initializing" } */