aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/runner.py')
-rw-r--r--tests/runner.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 4aab0970..1509ac28 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -158,6 +158,7 @@ class T(unittest.TestCase):
src = '''
#include <stdio.h>
int global = 20;
+ int *far;
int main()
{
int x = 5;
@@ -166,7 +167,8 @@ class T(unittest.TestCase):
y += 1;
int w = x*3+4;
int k = w < 15 ? 99 : 101;
- k += global;
+ far = &k;
+ *far += global;
int i = k > 100; // Should be an int, not a bool!
int j = i << 6;
j >>= 1;