]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/gcc.c-torture/execute/20020216-1.c
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20020216-1.c
diff --git a/gcc/testsuite/gcc.c-torture/execute/20020216-1.c b/gcc/testsuite/gcc.c-torture/execute/20020216-1.c
deleted file mode 100644 (file)
index bf62de5..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/* PR c/3444
-   This used to fail because bitwise xor was improperly computed in char type
-   and sign extended to int type.  */
-
-extern void abort ();
-extern void exit (int);
-
-signed char c = (signed char) 0xffffffff;
-
-int foo (void)
-{
-  return (unsigned short) c ^ (signed char) 0x99999999;
-}
-
-int main (void)
-{
-  if ((unsigned char) -1 != 0xff
-      || sizeof (short) != 2
-      || sizeof (int) != 4)
-    exit (0);
-  if (foo () != (int) 0xffff0066)
-    abort ();
-  exit (0);
-}