foo(int c,int a,int b)1*c85f09ccSJohn Levonint foo(int c, int a, int b) 2*c85f09ccSJohn Levon { 3*c85f09ccSJohn Levon int l, *p = &l; 4*c85f09ccSJohn Levon 5*c85f09ccSJohn Levon if (c) 6*c85f09ccSJohn Levon *p = a; 7*c85f09ccSJohn Levon else 8*c85f09ccSJohn Levon *p = b; 9*c85f09ccSJohn Levon 10*c85f09ccSJohn Levon return l + *p; 11*c85f09ccSJohn Levon } 12*c85f09ccSJohn Levon 13*c85f09ccSJohn Levon /* 14*c85f09ccSJohn Levon * check-name: if-then-else pointer 15*c85f09ccSJohn Levon * check-command: test-linearize -Wno-decl -fdump-ir=mem2reg $file 16*c85f09ccSJohn Levon * check-known-to-fail 17*c85f09ccSJohn Levon * check-output-ignore 18*c85f09ccSJohn Levon * check-output-excludes: load\\. 19*c85f09ccSJohn Levon * check-output-excludes: store\\. 20*c85f09ccSJohn Levon * check-output-contains: phi\\. 21*c85f09ccSJohn Levon */ 22