]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/gcc.c-torture/execute/991014-1.c
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 991014-1.c
diff --git a/gcc/testsuite/gcc.c-torture/execute/991014-1.c b/gcc/testsuite/gcc.c-torture/execute/991014-1.c
deleted file mode 100644 (file)
index 7b1b5fa..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-
-typedef typeof(sizeof(char)) Size_t;
-
-#define bufsize ((1L << (8 * sizeof(Size_t) - 2))-256)
-
-struct huge_struct
-{
-  short buf[bufsize];
-  int a;
-  int b;
-  int c;
-  int d;
-};
-
-union huge_union
-{
-  int a;
-  char buf[bufsize];
-};
-
-unsigned long union_size()
-{
-  return sizeof(union huge_union);
-}
-
-unsigned long struct_size()
-{
-  return sizeof(struct huge_struct);
-}
-
-unsigned long struct_a_offset()
-{
-  return (unsigned long)(&((struct huge_struct *) 0)->a);
-}
-
-int main()
-{
-  /* Check the exact sizeof value. bufsize is aligned on 256b. */
-  if (union_size() != sizeof(char) * bufsize)
-    abort();
-
-  if (struct_size() != sizeof(short) * bufsize + 4*sizeof(int))
-    abort();
-
-  if (struct_a_offset() < sizeof(short) * bufsize)
-    abort();  
-
-  return 0;
-}
-