blob: 589509a7a88920f46faf7cb5cfd320ef38f61a09 [file] [log] [blame]
/* { dg-options "-mgeneral-regs-only -O2" } */
struct S { float d; };
void bar (struct S);
void
f0 (int x)
{
struct S s = { .d = 0.0f }; /* { dg-error "'-mgeneral-regs-only' is incompatible with the use of floating-point types" } */
((char *) &s.d)[0] = x;
s.d *= 7.0; /* { dg-error "'-mgeneral-regs-only' is incompatible with the use of floating-point types" } */
bar (s); /* { dg-error "'-mgeneral-regs-only' is incompatible with the use of floating-point types" } */
}