blob: cc5f37ba9648e124677347e48c3d9bd5d80f9e20 [file] [log] [blame]
/* Test handling of lvalues of incomplete types. Bugs 36941, 88647
(invalid), 88827. */
/* { dg-do compile } */
/* { dg-options "-std=c11 -pedantic-errors" } */
struct S;
extern struct S var;
extern struct S *vp;
void
f8 (void)
{
/* These are valid because there is no constraint violation and the
result of '*' is never converted from an lvalue to an rvalue
(which would yield undefined behavior). */
&var;
&*vp;
&(var);
&(*vp);
&*&*vp;
}