X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.dg%2F20020201-1.c;fp=gcc%2Ftestsuite%2Fgcc.dg%2F20020201-1.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=11326378a0a97b7145f705fb320a5966860eaa91;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.dg/20020201-1.c b/gcc/testsuite/gcc.dg/20020201-1.c deleted file mode 100644 index 11326378..00000000 --- a/gcc/testsuite/gcc.dg/20020201-1.c +++ /dev/null @@ -1,37 +0,0 @@ -/* Check that arc profiling instrumentation code does not cause problems for - a program that calls functions that are likely to be in a shared library. - This was added to check the fix for PR target/5469, which prevents arc - profiling code from being inserted between a call and the restore of the - call-clobbered global pointer. */ - -/* { dg-options "-fprofile-arcs" } */ -/* { dg-do run { target native } } */ - -int rand (void); -void srand (unsigned int seed); - -int globvar; - -void -leave (int i) -{ - if (i != 0) - abort (); - exit (0); -} - -void -doit () -{ - srand (12); - globvar = rand (); - if (rand () > 0) - globvar = 0; - leave (globvar); -} - -int -main () -{ - doit (); -}