diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-04-09 15:21:17 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-04-09 15:21:17 -0700 |
commit | f65946188bd0de143809f3dc10ba1c65b4822fe1 (patch) | |
tree | 0eaf4b672b2fc8678d6a9e1259961f5188be3674 /tests/test_other.py | |
parent | f0817a3565bae94362b5aef88e0bccc5f35268b6 (diff) |
update test_implicit_func after musl updates; fixes #2277
Diffstat (limited to 'tests/test_other.py')
-rw-r--r-- | tests/test_other.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test_other.py b/tests/test_other.py index 854f88b1..3e6f1bfb 100644 --- a/tests/test_other.py +++ b/tests/test_other.py @@ -2533,10 +2533,8 @@ int main() for opts, expected, compile_expected in [ ([], None, [IMPLICIT_ERROR]), - (['-Wno-error=implicit-function-declaration'], ['abort()', 'it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this'], [IMPLICIT_WARNING]), # turn error into warning - (['-Wno-implicit-function-declaration'], ['abort()', 'it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this'], []), # turn error into nothing at all - (['-Wno-error=implicit-function-declaration', '-s', 'ASSERTIONS=2'], ['abort()', 'This pointer might make sense in another type signature'], []), - (['-Wno-error=implicit-function-declaration', '-O1'], ['hello 0\nhello 0\n'], []), # invalid output - second arg is sent as varargs, but needs to be int. llvm optimizer avoided the crash silently, caused undefined behavior... at least people can debug this by running an -O0 build. + (['-Wno-error=implicit-function-declaration'], ['hello '], [IMPLICIT_WARNING]), # turn error into warning + (['-Wno-implicit-function-declaration'], ['hello '], []), # turn error into nothing at all (runtime output is incorrect) ]: print opts, expected try_delete('a.out.js') |