activated tests for tr macros

This commit is contained in:
Araq 2012-09-06 00:23:55 +02:00
commit 355ae07b8f
7 changed files with 62 additions and 24 deletions

View file

@ -0,0 +1,16 @@
discard """
output: "23"
"""
template optslice{a = b + c}(a: expr{noalias}, b, c: expr): stmt =
a = b
inc a, c
var
x = 12
y = 10
z = 13
x = y+z
echo x