aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr37026.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr37026.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr37026.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr37026.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr37026.c
new file mode 100644
index 000000000..694e2ca2a
--- /dev/null
+++ b/gcc-4.9/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 });
+}