summary refs log tree commit diff
path: root/tests/pracownia4/pracownia3/001_or_01.xi
diff options
context:
space:
mode:
authorPaweł Dybiec <pdybiec@stud.cs.uni.wroc.pl>2018-12-23 17:10:36 +0100
committerPaweł Dybiec <pdybiec@stud.cs.uni.wroc.pl>2018-12-23 17:10:36 +0100
commita8a49e5b1f968d4ae160052a35242efc7ea30e30 (patch)
treee05b1314df984e1c3ebea212e77df96d76844ec8 /tests/pracownia4/pracownia3/001_or_01.xi
parentStart of regalloc (diff)
Update tests
Diffstat (limited to 'tests/pracownia4/pracownia3/001_or_01.xi')
-rw-r--r--tests/pracownia4/pracownia3/001_or_01.xi30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/pracownia4/pracownia3/001_or_01.xi b/tests/pracownia4/pracownia3/001_or_01.xi
new file mode 100644
index 0000000..42e3715
--- /dev/null
+++ b/tests/pracownia4/pracownia3/001_or_01.xi
@@ -0,0 +1,30 @@
+printString(str:int[])
+
+pred_lhs():bool
+{
+    printString("pred_lhs")
+    return false
+}
+
+pred_rhs():bool
+{
+    printString("pred_rhs")
+    return true
+}
+
+main():int
+{
+    result:int = 3
+    if pred_lhs() | pred_rhs() {
+        result = 1
+    } else {
+        result = 0
+    }
+
+    return result
+}
+
+//@PRACOWNIA
+//@out pred_lhs
+//@out pred_rhs
+//@out Exit code: 1