]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.dg/opt/ptrintsum1.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.dg / opt / ptrintsum1.C
diff --git a/gcc/testsuite/g++.dg/opt/ptrintsum1.C b/gcc/testsuite/g++.dg/opt/ptrintsum1.C
deleted file mode 100644 (file)
index a6a3c97..0000000
+++ /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);
-}