diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/torture/pr43165.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.dg/torture/pr43165.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr43165.c b/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr43165.c new file mode 100644 index 000000000..991c3d118 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr43165.c @@ -0,0 +1,18 @@ +/* PR debug/43165 */ +/* { dg-options "-g" } */ +/* { dg-require-effective-target int32plus } */ + +struct __attribute__((packed)) S +{ + unsigned char a; + unsigned short b; + unsigned short c; + unsigned d : 24; +}; + +void +foo (struct S p) +{ + for (; p.c; p.c++) + ; +} |