1*c85f09ccSJohn Levon #define TEST(N) \ 2*c85f09ccSJohn Levon do { \ 3*c85f09ccSJohn Levon d = b + a[N]; \ 4*c85f09ccSJohn Levon if (d < b) \ 5*c85f09ccSJohn Levon c++; \ 6*c85f09ccSJohn Levon b = d; \ 7*c85f09ccSJohn Levon } while (0) 8*c85f09ccSJohn Levon foo(int * a,int b,int c)9*c85f09ccSJohn Levonint foo(int *a, int b, int c) 10*c85f09ccSJohn Levon { 11*c85f09ccSJohn Levon int d; 12*c85f09ccSJohn Levon 13*c85f09ccSJohn Levon TEST(0); 14*c85f09ccSJohn Levon TEST(1); 15*c85f09ccSJohn Levon TEST(2); 16*c85f09ccSJohn Levon 17*c85f09ccSJohn Levon return d + c; 18*c85f09ccSJohn Levon } 19*c85f09ccSJohn Levon 20*c85f09ccSJohn Levon /* 21*c85f09ccSJohn Levon * check-name: quadratic phisrc 22*c85f09ccSJohn Levon * check-command: test-linearize -Wno-decl $file 23*c85f09ccSJohn Levon * check-output-ignore 24*c85f09ccSJohn Levon * check-output-excludes: phi\\..*, .*, .* 25*c85f09ccSJohn Levon * check-output-excludes: phi\\..*, .*, .*, .* 26*c85f09ccSJohn Levon * check-output-pattern(6): phisrc\\. 27*c85f09ccSJohn Levon */ 28