From ba05bc9089248fc92a2fa12bace04c7f63649b9a Mon Sep 17 00:00:00 2001 From: lemon Date: Thu, 9 Oct 2025 20:10:34 +0200 Subject: compound literals --- test/test2.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/test2.c') diff --git a/test/test2.c b/test/test2.c index fec9b14..26def98 100644 --- a/test/test2.c +++ b/test/test2.c @@ -24,3 +24,8 @@ short s(int a, int b) { int i() { return s(1,2); } + +double v2v2() { + v2d x = add((v2d){1,2}, (v2d){3,4}); + return x.x+x.y; +} -- cgit v1.2.3