From 95830097605d60de9c913d76a833c4fc58608a99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind?= Date: Thu, 31 Mar 2022 23:12:42 +0200 Subject: [PATCH] added some more test files to vsl --- .../05/vslc/vsl_programs/ps5-codegen1/globals.vsl | 12 ++++++++++++ .../05/vslc/vsl_programs/ps5-codegen1/shadow.vsl | 3 +++ 2 files changed, 15 insertions(+) create mode 100644 exercises/05/vslc/vsl_programs/ps5-codegen1/globals.vsl diff --git a/exercises/05/vslc/vsl_programs/ps5-codegen1/globals.vsl b/exercises/05/vslc/vsl_programs/ps5-codegen1/globals.vsl new file mode 100644 index 0000000..cc4fd7e --- /dev/null +++ b/exercises/05/vslc/vsl_programs/ps5-codegen1/globals.vsl @@ -0,0 +1,12 @@ +var global_var0, global_var1 + +func my_func(param0, param1) begin + var a + return 0 +end + +func main() begin + var a + print "a string" + return 0 +end \ No newline at end of file diff --git a/exercises/05/vslc/vsl_programs/ps5-codegen1/shadow.vsl b/exercises/05/vslc/vsl_programs/ps5-codegen1/shadow.vsl index e4193ce..c2e882b 100644 --- a/exercises/05/vslc/vsl_programs/ps5-codegen1/shadow.vsl +++ b/exercises/05/vslc/vsl_programs/ps5-codegen1/shadow.vsl @@ -1,4 +1,7 @@ // Checking symbol shadowing + +var a + func shadow() begin var a, b a := 1