summary refs log tree commit diff stats
path: root/tests/accept/run/toprprec.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/accept/run/toprprec.nim')
-rw-r--r--tests/accept/run/toprprec.nim12
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/accept/run/toprprec.nim b/tests/accept/run/toprprec.nim
deleted file mode 100644
index 4728b2e68..000000000
--- a/tests/accept/run/toprprec.nim
+++ /dev/null
@@ -1,12 +0,0 @@
-# Test operator precedence: 
-
-assert 3+5*5-2 == 28- -26-28
-
-proc `^-` (x, y: int): int =  
-  # now right-associative!
-  result = x - y
-  
-assert 34 ^- 6 ^- 2 == 30
-assert 34 - 6 - 2 == 26
-echo "done"
-