]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/gcc.c-torture/execute/981001-1.c
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 981001-1.c
diff --git a/gcc/testsuite/gcc.c-torture/execute/981001-1.c b/gcc/testsuite/gcc.c-torture/execute/981001-1.c
deleted file mode 100644 (file)
index da63f47..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-#define NG   0x100L
-
-unsigned long flg = 0;
-
-long sub (int n)
-{
-  int a, b ;
-
-  if (n >= 2)
-    {
-      if (n % 2 == 0)
-       {
-         a = sub (n / 2);
-         
-         return (a + 2 * sub (n / 2 - 1)) * a;
-       }
-      else
-       {
-         a = sub (n / 2 + 1);
-         b = sub (n / 2);
-         
-         return a * a + b * b;
-       }
-    }
-  else 
-    return (long) n;
-}
-
-int main (void)
-{
-  if (sub (30) != 832040L)
-    flg |= NG;
-
-  if (flg)
-    abort ();
-  
-  exit (0);
-}