diff options
| author | 2025-10-09 20:10:34 +0200 | |
|---|---|---|
| committer | 2025-10-09 20:10:34 +0200 | |
| commit | ba05bc9089248fc92a2fa12bace04c7f63649b9a (patch) | |
| tree | 9669be6a2fcf645735bb8e49a76da5e4e95c9d28 /test/test2.c | |
| parent | 9df18e9b384a56902ef1517bc269b8c345149e12 (diff) | |
compound literals
Diffstat (limited to 'test/test2.c')
| -rw-r--r-- | test/test2.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; +} |