From ac8c0ed9c7ec68d89a5216030cb159cb11949cdc Mon Sep 17 00:00:00 2001 From: Curle Date: Mon, 5 Jul 2021 00:07:55 +0100 Subject: [PATCH] Add struct tests. --- tests/struct.er | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/struct.er b/tests/struct.er index 2fcf6c0..ae0ea64 100644 --- a/tests/struct.er +++ b/tests/struct.er @@ -3,4 +3,12 @@ struct a { int y }; -int main() { return (0); } \ No newline at end of file +int printf(char* fmt); + +struct a str; + +int main() { + str.y = 55; + printf("%d\n", str.y); + return (0); +} \ No newline at end of file