]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/gcc.c-torture/execute/struct-ret-2.c
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / gcc.c-torture / execute / struct-ret-2.c
diff --git a/gcc/testsuite/gcc.c-torture/execute/struct-ret-2.c b/gcc/testsuite/gcc.c-torture/execute/struct-ret-2.c
deleted file mode 100644 (file)
index 06a40a7..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-typedef struct
-{
-  unsigned char a __attribute__ ((packed));
-  unsigned short b __attribute__ ((packed));
-} three_byte_t;
-
-unsigned char
-f (void)
-{
-  return 0xab;
-}
-
-unsigned short
-g (void)
-{
-  return 0x1234;
-}
-
-main ()
-{
-  three_byte_t three_byte;
-
-  three_byte.a = f ();
-  three_byte.b = g ();
-  if (three_byte.a != 0xab || three_byte.b != 0x1234)
-    abort ();
-  exit (0);
-}
-