From 7a69bb068633f14fec1b7589065de7b57d82374c Mon Sep 17 00:00:00 2001 From: David Gonzalez Martin Date: Wed, 22 May 2024 08:32:59 -0600 Subject: [PATCH] Add return 0 case --- retest/standalone/{first => call_other_file}/file.nat | 0 retest/standalone/call_other_file/main.nat | 6 ++++++ retest/standalone/first/main.nat | 4 +--- 3 files changed, 7 insertions(+), 3 deletions(-) rename retest/standalone/{first => call_other_file}/file.nat (100%) create mode 100644 retest/standalone/call_other_file/main.nat diff --git a/retest/standalone/first/file.nat b/retest/standalone/call_other_file/file.nat similarity index 100% rename from retest/standalone/first/file.nat rename to retest/standalone/call_other_file/file.nat diff --git a/retest/standalone/call_other_file/main.nat b/retest/standalone/call_other_file/main.nat new file mode 100644 index 0000000..45970a5 --- /dev/null +++ b/retest/standalone/call_other_file/main.nat @@ -0,0 +1,6 @@ +import "file.nat"; + +fn [cc(.c)] main [export]() s32 +{ + return file.foo(); +} diff --git a/retest/standalone/first/main.nat b/retest/standalone/first/main.nat index 45970a5..672fa11 100644 --- a/retest/standalone/first/main.nat +++ b/retest/standalone/first/main.nat @@ -1,6 +1,4 @@ -import "file.nat"; - fn [cc(.c)] main [export]() s32 { - return file.foo(); + return 0; }