diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-20 20:53:27 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-20 20:53:27 -0800 |
commit | bae448ef2619fffb90021c96546cbccadc39ed20 (patch) | |
tree | 9312f3a87aee8d13fa4c5fd5ccdf88ebfc92cd2c /tests | |
parent | 78fde14808c0b075bd040d23b1d8cfb349c7cd84 (diff) |
stdbool.h
Diffstat (limited to 'tests')
-rw-r--r-- | tests/runner.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index e9886ab8..75436530 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -2037,6 +2037,20 @@ if 'benchmark' not in str(sys.argv) and 'sanity' not in str(sys.argv): self.do_run(src, '*1,2,3,5,5,6*\n*stdin==0:0*\n*%*\n*5*\n*66.0*\n*10*\n*0*\n*-10*\n*18*\n*10*\n*0*\n*4294967286*\n*malloc(0)!=0:1*\n*cleaned*') + src = r''' + #include <stdio.h> + #include <stdbool.h> + + int main() { + bool x = true; + bool y = false; + printf("*%d*\n", x != y); + return 0; + } + ''' + + self.do_run(src, '*1*', force_c=True) + def test_time(self): # XXX Not sure what the right output is here. Looks like the test started failing with daylight savings changes. Modified it to pass again. src = open(path_from_root('tests', 'time', 'src.c'), 'r').read() |