* gcc.dg/torture/stackalign/builtin-apply-2.c: Fix skip-if syntax.
[official-gcc.git] / gcc / testsuite / gcc.dg / guality / pr59776.c
blob382abb622bbd4e01bfdfb7a29a20f8d5348d5e7d
1 /* PR debug/59776 */
2 /* { dg-do run } */
3 /* { dg-options "-g" } */
5 #include "../nop.h"
7 struct S { float f, g; };
9 __attribute__((noinline, noclone)) void
10 foo (struct S *p)
12 struct S s1, s2; /* { dg-final { gdb-test pr59776.c:17 "s1.f" "5.0" } } */
13 s1 = *p; /* { dg-final { gdb-test pr59776.c:17 "s1.g" "6.0" } } */
14 s2 = s1; /* { dg-final { gdb-test pr59776.c:17 "s2.f" "0.0" } } */
15 *(int *) &s2.f = 0; /* { dg-final { gdb-test pr59776.c:17 "s2.g" "6.0" } } */
16 asm volatile (NOP : : : "memory"); /* { dg-final { gdb-test pr59776.c:20 "s1.f" "5.0" } } */
17 asm volatile (NOP : : : "memory"); /* { dg-final { gdb-test pr59776.c:20 "s1.g" "6.0" } } */
18 s2 = s1; /* { dg-final { gdb-test pr59776.c:20 "s2.f" "5.0" } } */
19 asm volatile (NOP : : : "memory"); /* { dg-final { gdb-test pr59776.c:20 "s2.g" "6.0" } } */
20 asm volatile (NOP : : : "memory");
23 int
24 main ()
26 struct S x = { 5.0f, 6.0f };
27 foo (&x);
28 return 0;