Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/mgeneral-regs_5.c

raw
1 /* { dg-options "-mgeneral-regs-only -O2" } */
2
3 struct S { float d; };
4
5 void bar (struct S);
6
7 void
8 f0 (int x)
9 {
10 struct S s = { .d = 0.0f }; /* { dg-error "'-mgeneral-regs-only' is incompatible with the use of floating-point types" } */
11 ((char *) &s.d)[0] = x;
12 s.d *= 7.0; /* { dg-error "'-mgeneral-regs-only' is incompatible with the use of floating-point types" } */
13 bar (s); /* { dg-error "'-mgeneral-regs-only' is incompatible with the use of floating-point types" } */
14 }