diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/960221-1.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/960221-1.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/960221-1.c b/gcc/testsuite/gcc.c-torture/compile/960221-1.c new file mode 100644 index 00000000000..0e02496c104 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/960221-1.c @@ -0,0 +1,11 @@ +struct s1 { int f1; }; + +struct s2 { + struct s1 a; + int f2; +}; + +foo (struct s2 *ptr) +{ + *ptr = (struct s2) {{}, 0}; +} |