diff options
Diffstat (limited to 'test/standalone.cpp')
| -rw-r--r-- | test/standalone.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/standalone.cpp b/test/standalone.cpp index a4848db127..a220e1251e 100644 --- a/test/standalone.cpp +++ b/test/standalone.cpp @@ -53,7 +53,7 @@ static void add_all_test_cases(void) { fn exit(code: i32) -> unreachable; } - fn _start() -> unreachable { + export fn _start() -> unreachable { puts("Hello, world!"); exit(0); } @@ -69,7 +69,7 @@ static void add_all_test_cases(void) { fn empty_function_1() {} fn empty_function_2() { return; } - fn _start() -> unreachable { + export fn _start() -> unreachable { empty_function_1(); empty_function_2(); this_is_a_function(); @@ -95,7 +95,7 @@ static void add_all_test_cases(void) { /// this is a documentation comment /// doc comment line 2 - fn _start() -> unreachable { + export fn _start() -> unreachable { puts(/* mid-line comment /* nested */ */ "OK"); exit(0); } |
