diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/pr37026.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/pr37026.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr37026.c b/gcc/testsuite/gcc.c-torture/compile/pr37026.c new file mode 100644 index 000000000..694e2ca2a --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr37026.c @@ -0,0 +1,12 @@ +struct a { + long a1; + long a2; +}; +struct b { + struct a b1; + struct a b2; +}; +void bar (struct b *c) +{ + c->b1 = c->b2 = ((struct a) { foo(), 0 }); +} |