aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-09-03 23:18:37 -0700
committeralon@honor <none@none>2010-09-03 23:18:37 -0700
commit62dd7f4bb734017e0a855fee79494cdf6959ae8c (patch)
treeaee58cb82c16933b0fc946e645b444c11fd48544 /tests
parent8181e238184e170ec31bab865859e7c9294824a4 (diff)
Support for global pointers +test
Diffstat (limited to 'tests')
-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;