diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-02-06 11:02:30 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-02-06 11:02:30 -0800 |
commit | 7c4144bf31b38db67f7e1c1d42e28ad324b28d2b (patch) | |
tree | a95e35e63ed3d9469b0dba6483fbd799852c89ce /tests | |
parent | aa2ad76765cc6968894f035a7acb0fe23f497c7f (diff) |
test for issue #838
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runner.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index b6980933..c4760b07 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -3966,6 +3966,18 @@ The current type of b is: 9 ''' self.do_run(src, '*0\n') + def test_time_c(self): + src = r''' + #include <time.h> + #include <stdio.h> + + int main() { + time_t t = time(0); + printf("time: %s\n", ctime(&t)); + } + ''' + self.do_run(src, 'time: ') # compilation check, mainly + def test_intentional_fault(self): if Settings.ASM_JS: return self.skip('no throw support in asm') # Some programs intentionally segfault themselves, we should compile that into a throw |