diff options
author | alon@honor <none@none> | 2010-10-16 14:38:27 -0700 |
---|---|---|
committer | alon@honor <none@none> | 2010-10-16 14:38:27 -0700 |
commit | 6fa5f7160c816fc982432dc5f990a1da14d09175 (patch) | |
tree | c01d02517eea83dc321874ca3ac5de3295be6496 /tests | |
parent | 9290e904560e8994d8c657a771150de0d86a4b49 (diff) |
remove unneeded BREAKs
Diffstat (limited to 'tests')
-rw-r--r-- | tests/runner.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index 628c8e8d..e304c1e9 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -208,6 +208,22 @@ if 'benchmark' not in sys.argv: ''' self.do_test(src, '*yes*') + def test_if_else(self): + src = ''' + #include <stdio.h> + int main() + { + int x = 5; + if (x > 10) { + printf("*yes*\\n"); + } else { + printf("*no*\\n"); + } + return 0; + } + ''' + self.do_test(src, '*no*') + def test_loop(self): src = ''' #include <stdio.h> |