summary refs log tree commit diff
path: root/tests/pracownia3/043_while_or.xi
diff options
context:
space:
mode:
authorPaweł Dybiec <pdybiec@stud.cs.uni.wroc.pl>2018-12-09 18:57:17 +0100
committerPaweł Dybiec <pdybiec@stud.cs.uni.wroc.pl>2018-12-09 18:57:17 +0100
commit21952240e9a785713351ca336e11df498480f905 (patch)
treed61e33c910adae94b5cde0b2d3ffee13aa8062ee /tests/pracownia3/043_while_or.xi
parentInitial code for translator (diff)
Tests
Diffstat (limited to 'tests/pracownia3/043_while_or.xi')
-rw-r--r--tests/pracownia3/043_while_or.xi18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/pracownia3/043_while_or.xi b/tests/pracownia3/043_while_or.xi
new file mode 100644
index 0000000..5d9525e
--- /dev/null
+++ b/tests/pracownia3/043_while_or.xi
@@ -0,0 +1,18 @@
+pred():bool
+{
+    return false
+}
+
+main():int
+{
+    x:bool = true
+    result:int = 13
+    while x | pred() {
+        result = 100
+        x = false 
+    }
+    return result
+}
+
+//@PRACOWNIA
+//@out Exit code: 100