From 1d943da0cf9154e7ce78ce867cdbb91531c5d78e Mon Sep 17 00:00:00 2001 From: Matthew Sotoudeh Date: Tue, 25 Jul 2023 14:58:33 -0700 Subject: initial dietc commit --- tests/test.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/test.c (limited to 'tests/test.c') diff --git a/tests/test.c b/tests/test.c new file mode 100644 index 0000000..2e23b8b --- /dev/null +++ b/tests/test.c @@ -0,0 +1,21 @@ +#include + +struct foo { + long bar; + char baz; +}; + +struct foo bar = {1,2}; + +struct foo *barptr[2] = {&bar, &bar}; +struct foo **barptrptr[2] = {&barptr[0], &barptr[1]}; + +int main(void) { + int x = 5; + if (x) + x++; + long y = 6; + y++; + printf("Hello, World!\n"); + return 0; +} -- cgit v1.2.3