summaryrefslogtreecommitdiff
path: root/tests/byte-code/hello.slang
diff options
context:
space:
mode:
Diffstat (limited to 'tests/byte-code/hello.slang')
-rw-r--r--tests/byte-code/hello.slang17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/byte-code/hello.slang b/tests/byte-code/hello.slang
new file mode 100644
index 000000000..f3c13cbab
--- /dev/null
+++ b/tests/byte-code/hello.slang
@@ -0,0 +1,17 @@
+//TEST:INTERPRET(filecheck=BC): -disasm
+//TEST:INTERPRET(filecheck=CHECK):
+
+int main(int argc, NativeString* argv)
+{
+ printf("hello world\n");
+ for (int i = 0; i < argc; ++i)
+ {
+ printf("%s\n", argv[i]);
+ }
+ return 100;
+}
+
+// CHECK: hello world
+// CHECK: {{.*}}hello.slang
+// BC: func main
+// BC: ret \ No newline at end of file