X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.c-torture%2Fexecute%2Fnestfunc-2.c;fp=gcc%2Ftestsuite%2Fgcc.c-torture%2Fexecute%2Fnestfunc-2.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=030875560dc51b0b6e47ff01afaf166aaf445c70;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.c-torture/execute/nestfunc-2.c b/gcc/testsuite/gcc.c-torture/execute/nestfunc-2.c deleted file mode 100644 index 03087556..00000000 --- a/gcc/testsuite/gcc.c-torture/execute/nestfunc-2.c +++ /dev/null @@ -1,49 +0,0 @@ -extern int foo (int, int, int (*) (int, int, int, int, int, int, int)); - -int z; - -int -main (void) -{ -#ifndef NO_TRAMPOLINES - int sum = 0; - int i; - - int nested (int a, int b, int c, int d, int e, int f, int g) - { - z = c + d + e + f + g; - - if (a > 2 * b) - return a - b; - else - return b - a; - } - - for (i = 0; i < 10; ++i) - { - int j; - - for (j = 0; j < 10; ++j) - { - int k; - - for (k = 0; k < 10; ++k) - sum += foo (i, j > k ? j - k : k - j, nested); - } - } - - if (sum != 2300) - abort (); - - if (z != 0x1b) - abort (); -#endif - - exit (0); -} - -int -foo (int a, int b, int (* fp) (int, int, int, int, int, int, int)) -{ - return fp (a, b, a, b, a, b, a); -}