bpf: create modifier for mem operand for xchg and cmpxchg
[official-gcc.git] / gcc / testsuite / gcc.dg / pr41841.c
blob8bce4e6240b95faa565ab531c205dd8cfc8e7b63
1 /* PR tree-optimization/41841 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -fwhole-program -fipa-cp" } */
5 typedef struct S *T;
6 typedef struct { } *U;
7 extern int f1 (void);
9 static void
10 f3 (U x, int y)
12 T a = (T) x;
13 y && f1 ();
16 static void
17 f2 (T x)
19 f3 ((U) x, 1);
22 void *volatile a __attribute__((used)) = f2;