X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Fopt%2Fptrintsum1.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Fopt%2Fptrintsum1.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=a6a3c9727db059b587cf6edf8c30d82b33263af2;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.dg/opt/ptrintsum1.C b/gcc/testsuite/g++.dg/opt/ptrintsum1.C deleted file mode 100644 index a6a3c972..00000000 --- a/gcc/testsuite/g++.dg/opt/ptrintsum1.C +++ /dev/null @@ -1,29 +0,0 @@ -// PR c++/4401 -// This testcase was miscompiled on 64-bit platforms, resulting to -// operating on a[0x100000000] instead of a[0]. -// { dg-do run } -// { dg-options "-O2" } - -char *a; -char b[] = "AAAA"; - -extern "C" void abort (void); -extern "C" void exit (int); - -void foo (void) -{ - unsigned int i, j; - - i = 2; - j = 3; - a[i + 1 - j] += i; -} - -int main (void) -{ - a = b; - foo (); - if (b[0] != 'A' + 2) - abort (); - exit (0); -}