From 07035c0fc663ed7ffe0df00f9194df0e66f4ea2f Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Mon, 25 Sep 2000 00:04:55 -0700 Subject: [PATCH] New test. From-SVN: r36600 --- gcc/testsuite/gcc.c-torture/execute/packed-2.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/execute/packed-2.c diff --git a/gcc/testsuite/gcc.c-torture/execute/packed-2.c b/gcc/testsuite/gcc.c-torture/execute/packed-2.c new file mode 100644 index 00000000000..6c579008849 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/packed-2.c @@ -0,0 +1,12 @@ +typedef struct s { + unsigned short a; + unsigned long b __attribute__ ((packed)); +} s; + +s t; + +int main() +{ + t.b = 0; + return 0; +}