1*c85f09ccSJohn Levon int a, b, c, d, e; 2*c85f09ccSJohn Levon foo(void)3*c85f09ccSJohn Levonvoid foo(void) 4*c85f09ccSJohn Levon { 5*c85f09ccSJohn Levon if (a) 6*c85f09ccSJohn Levon b = c; 7*c85f09ccSJohn Levon else 8*c85f09ccSJohn Levon b = d; 9*c85f09ccSJohn Levon if (c) 10*c85f09ccSJohn Levon a = b; 11*c85f09ccSJohn Levon if (b) 12*c85f09ccSJohn Levon e = a; 13*c85f09ccSJohn Levon } 14*c85f09ccSJohn Levon 15*c85f09ccSJohn Levon /* 16*c85f09ccSJohn Levon * check-name: global no-alias 17*c85f09ccSJohn Levon * check-command: test-linearize -Wno-decl -fdump-ir=mem2reg $file 18*c85f09ccSJohn Levon * check-output-ignore 19*c85f09ccSJohn Levon * check-output-pattern(4,7): load\\. 20*c85f09ccSJohn Levon * check-output-pattern(4): store\\. 21*c85f09ccSJohn Levon */ 22