diff options
author | alon@honor <none@none> | 2010-09-02 20:05:14 -0700 |
---|---|---|
committer | alon@honor <none@none> | 2010-09-02 20:05:14 -0700 |
commit | aa9ac51abcb31172b46df7f13a90e8a97b9abd91 (patch) | |
tree | 26bb9cd7e7572f5130489900fcce14ea5992070b /tests | |
parent | e8c3ecd8cd3d85f9f50f32fad3e419166fe126f4 (diff) |
support for bitshifts +test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/runner.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py index b27d9714..981f4136 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -164,11 +164,13 @@ class T(unittest.TestCase): int w = x*3+4; int k = w < 15 ? 99 : 101; int i = k > 100; // Should be an int, not a bool! - printf("*%d,%d,%d,%d,%d,%d*\\n", x, y, z, w, k,i); + int j = i << 6; + j >>= 1; + printf("*%d,%d,%d,%d,%d,%d,%d*\\n", x, y, z, w, k, i, j); return 0; } ''' - self.do_test(src, '*5,23,10,19,101,1*') + self.do_test(src, '*5,23,10,19,101,1,32*') def test_floatvars(self): src = ''' |