X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Fopt%2Freload2.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Fopt%2Freload2.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=1af8aea6559b7907ceb1d696d38df8c4b1d9b2bf;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.dg/opt/reload2.C b/gcc/testsuite/g++.dg/opt/reload2.C deleted file mode 100644 index 1af8aea6..00000000 --- a/gcc/testsuite/g++.dg/opt/reload2.C +++ /dev/null @@ -1,42 +0,0 @@ -// PR 10352 -// { dg-do compile } -// { dg-options -O2 } - -extern double fabs(double x); - -typedef struct { float x, y; } S; -typedef struct _T T; - -extern void fT( T *p ); -extern T *h(); -extern S g( ); - -static -int f(void) -{ - T *t=0; - int c=0; - S s; - - const S exp_s = {0.,0.}; - - if(!(t = h())) - { - c++; - } - - if(!c) - { - s = g(); - if( (fabs( (s.x) - (exp_s.x) ) > 1 ) - || (fabs( (s.y) - (exp_s.y) ) > 1 ) ) - { - c++; - } - } - - if(t) - fT(t); - - return c; -}