aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/vlib/os/bare/bare_example_linux.v
diff options
context:
space:
mode:
Diffstat (limited to 'v_windows/v/vlib/os/bare/bare_example_linux.v')
-rw-r--r--v_windows/v/vlib/os/bare/bare_example_linux.v8
1 files changed, 8 insertions, 0 deletions
diff --git a/v_windows/v/vlib/os/bare/bare_example_linux.v b/v_windows/v/vlib/os/bare/bare_example_linux.v
new file mode 100644
index 0000000..0aa92dd
--- /dev/null
+++ b/v_windows/v/vlib/os/bare/bare_example_linux.v
@@ -0,0 +1,8 @@
+fn main() {
+ sys_write(1, 'hello\n'.str, 6)
+ s := 'test string\n'
+ sys_write(1, s.str, u64(s.len))
+ a := s[0]
+ println('Hello freestanding!')
+ println(a)
+}