diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-05-27 12:46:32 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-05-27 12:46:32 -0700 |
commit | 2f0867998ff917d44be000699db443737c153ed3 (patch) | |
tree | 476a3a39a7fe8f24414f510243c9722ca099b12e /tests/runner.py | |
parent | 196cc4113a0ab6a0f04d482689428951a19e3725 (diff) |
fix bug with invalid [#uses=?] parsing
Diffstat (limited to 'tests/runner.py')
-rw-r--r-- | tests/runner.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index f6c62087..1a240240 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -1039,6 +1039,21 @@ if 'benchmark' not in sys.argv: ''' self.do_test(src, '*zzcheezzz*') + def test_alloca(self): + global COMPILER_TEST_OPTS; COMPILER_TEST_OPTS = ['-g'] # This can mess up our parsing of [#uses=..] + + src = ''' + #include <stdio.h> + + int main() { + char *pc; + pc = (char *)alloca(5); + printf("z:%d*%d*\\n", pc > 0, (int)pc); + return 0; + } + ''' + self.do_test(src, 'z:1*', force_c=True) + def test_array2(self): src = ''' #include <stdio.h> |