From ed47a54958f5bd48dc364d4a0f77f778768696bb Mon Sep 17 00:00:00 2001 From: lemon Date: Mon, 5 Jun 2023 10:28:57 +0200 Subject: strlits --- test/test2.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/test2.c (limited to 'test/test2.c') diff --git a/test/test2.c b/test/test2.c new file mode 100644 index 0000000..7d39164 --- /dev/null +++ b/test/test2.c @@ -0,0 +1,23 @@ +typedef struct v2d { double x,y; } v2d; + + + +void addp(v2d *a, const v2d *b) +{ + a->x += b->x; + a->y += b->y; +} + +v2d add(v2d a, v2d b) +{ + addp(&a, &b); + return a; +} + +short s(int a, int b) { + return a + b; +} + +int i() { + return s(1,2); +} -- cgit v1.2.3