summaryrefslogtreecommitdiff
path: root/test/regression/struct8.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/regression/struct8.c')
-rw-r--r--test/regression/struct8.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/regression/struct8.c b/test/regression/struct8.c
index 989c352..a100cbe 100644
--- a/test/regression/struct8.c
+++ b/test/regression/struct8.c
@@ -16,8 +16,14 @@ struct S f(struct S s, int scale)
int main()
{
struct S a = { 123, 2.718, 'a' };
- struct S b = f(a, 2);
+ struct S b, c, d, e;
+ b = f(a, 2);
+ c = f(f(a, 2), 3);
+ e = f((d = f(a, 2)), 3);
printf("a = { %d, %f, '%c' }\n", a.x, a.d, a.c);
printf("b = { %d, %f, '%c' }\n", b.x, b.d, b.c);
+ printf("c = { %d, %f, '%c' }\n", c.x, c.d, c.c);
+ printf("d = { %d, %f, '%c' }\n", d.x, d.d, d.c);
+ printf("e = { %d, %f, '%c' }\n", e.x, e.d, e.c);
return 0;
}