aboutsummaryrefslogtreecommitdiff
path: root/test/standalone.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2015-11-27 15:46:06 -0700
committerAndrew Kelley <superjoe30@gmail.com>2015-11-27 15:46:06 -0700
commit024052b4483b13639e998ef34dc097a24860c612 (patch)
tree267af11f1d492a1c532a671079ade5520564299a /test/standalone.cpp
parent9ca9a2c5540683a54bae597c59152d06d095beef (diff)
downloadzig-024052b4483b13639e998ef34dc097a24860c612.tar.gz
zig-024052b4483b13639e998ef34dc097a24860c612.zip
add pub and export visibility modifiers and optimization
Diffstat (limited to 'test/standalone.cpp')
-rw-r--r--test/standalone.cpp6
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);
}