1 /* https://bugzilla.redhat.com/show_bug.cgi?id=521991#c5
3 Distilled from Linux XFS source code. foo, inlined into bar, ends
4 up with debug stmts referencing the addressable variable b.
5 Optimization made it non-addressable, and then completely optimized
6 away, before we got a chance to rename (and discard) the occurrence
7 in the debug stmt. When we did, we crashed, attempting to rename
8 an unreference variable. */
10 /* { dg-do compile } */
13 foo (void *x
, unsigned y
)
15 unsigned z
= *(unsigned long *) x
% y
;
16 *(unsigned long *) x
= *(unsigned long *) x
/ y
;
26 bar (struct S
*x
, int *y
)
29 unsigned long b
= x
->t
;