aboutsummaryrefslogtreecommitdiff
path: root/tests/test_core.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-09-18 20:50:26 -0500
committerAlon Zakai <alonzakai@gmail.com>2013-09-18 20:50:26 -0500
commit45f8f9c948c5548665438827e3d6b39a40eca06e (patch)
tree3c59d2e107c8029ae240c65c060283c8b89a3e4a /tests/test_core.py
parentc5d546a87d38ef07a7b98edba472c4599decd35f (diff)
generate valid code for segfaulting loads, not assignless aborts
Diffstat (limited to 'tests/test_core.py')
-rw-r--r--tests/test_core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index 05f3acc6..4c17a942 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -5046,7 +5046,7 @@ The current type of b is: 9
src = r'''
int main () {
*(volatile char *)0 = 0;
- return 0;
+ return *(volatile char *)0;
}
'''
self.do_run(src, 'fault on write to 0' if not Settings.ASM_JS else 'abort()')