diff --git a/testdata/eval/positive/3.pdl b/testdata/eval/positive/3.pdl new file mode 100644 index 0000000000000000000000000000000000000000..fd442115c3c35db488ba0c5c4554b589d4a73104 --- /dev/null +++ b/testdata/eval/positive/3.pdl @@ -0,0 +1,13 @@ +#version 100 + +composite main() {} + +int test() { + int x = 5; + if (x >= 5) { // true + int y = 2; + x -= --y; // --y is 1, so x -= 1 results in 4 + } + x++; // becomes 5 + return x; +} \ No newline at end of file