PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / guality / pr69244.c
blob6fe14bd1471b8db94786c68cef4800b16133591d
1 /* PR debug/69244 */
2 /* { dg-do run } */
3 /* { dg-options "-g" } */
5 #include "../nop.h"
7 union U { float f; int i; };
8 float a, b;
10 __attribute__((noinline, noclone)) void
11 foo (void)
13 asm volatile ("" : : "g" (&a), "g" (&b) : "memory");
16 int
17 main ()
19 float e = a;
20 foo ();
21 float d = e;
22 union U p;
23 p.f = d += 2;
24 int c = p.i - 4;
25 asm (NOP : : : "memory");
26 b = c;
27 return 0;
30 /* { dg-final { gdb-test 25 "c" "p.i-4" } } */