diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr49029.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr49029.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr49029.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr49029.c new file mode 100644 index 000000000..71199d445 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr49029.c @@ -0,0 +1,11 @@ +/* PR middle-end/49029 */ +/* { dg-require-effective-target int32plus } */ +struct S { volatile unsigned f : 11; signed g : 30; } __attribute__((packed)); +struct T { volatile struct S h; } __attribute__((packed)) a; +void foo (int); + +void +bar () +{ + foo (a.h.g); +} |