aboutsummaryrefslogtreecommitdiff
path: root/testsuite/runnable/unary_plus.elna
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-07-19 17:09:40 +0200
committerEugen Wissner <belka@caraus.de>2026-07-19 18:30:21 +0200
commitcdbc1695a93910df5729779de31912a3b4b4172b (patch)
tree43a4c5a192df7060f8a36c75d339be7ac5722f72 /testsuite/runnable/unary_plus.elna
parentcd2ee0c97348444779a155909b7ec78d89cfd2e0 (diff)
downloadelna-cdbc1695a93910df5729779de31912a3b4b4172b.tar.gz
Support unary plus operation
Diffstat (limited to 'testsuite/runnable/unary_plus.elna')
-rw-r--r--testsuite/runnable/unary_plus.elna8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/runnable/unary_plus.elna b/testsuite/runnable/unary_plus.elna
new file mode 100644
index 0000000..2bc69f3
--- /dev/null
+++ b/testsuite/runnable/unary_plus.elna
@@ -0,0 +1,8 @@
+proc f(x: Int): Int
+return +x
+
+begin
+ assert(+3 = 3);
+ assert(f(5) = 5);
+ assert(f(-7) = -7)
+end.