summaryrefslogtreecommitdiff
path: root/c/examples/zero_init/test.c
diff options
context:
space:
mode:
authorMatthew Sotoudeh <matthew@masot.net>2023-07-30 21:16:09 -0700
committerMatthew Sotoudeh <matthew@masot.net>2023-07-30 21:16:09 -0700
commitc8ef4cf86bb97033238e3aa5c95789ea665341b1 (patch)
tree9af6be822a495554d26691233b8031bf10833995 /c/examples/zero_init/test.c
parent4de60a709d3af497781b7467f2c6fe7e09b39595 (diff)
C dynamic typing pass works as well
Diffstat (limited to 'c/examples/zero_init/test.c')
l---------[-rw-r--r--]c/examples/zero_init/test.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/c/examples/zero_init/test.c b/c/examples/zero_init/test.c
index 5db109a..73e2712 100644..120000
--- a/c/examples/zero_init/test.c
+++ b/c/examples/zero_init/test.c
@@ -1,20 +1 @@
-#include <stdio.h>
-
-int set_xyz() {
- int xyz = 1;
- return xyz;
-}
-
-int foo() {
- int xyz;
- return xyz;
-}
-
-int main() {
- printf("Foo return value: %d\n", foo());
- set_xyz();
- printf("Foo return value: %d\n", foo());
- set_xyz();
- printf("Foo return value: %d\n", foo());
- return 0;
-}
+../../../python/examples/zero_init/test.c \ No newline at end of file
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback