diff options
Diffstat (limited to 'tests/runner.py')
-rw-r--r-- | tests/runner.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py index 931127c8..7356ad34 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -501,6 +501,10 @@ if 'benchmark' not in sys.argv: int calc1() { return 26; } int calc2() { return 90; } typedef int (*fp_t)(); + + fp_t globally1 = calc1; + fp_t globally2 = calc2; + int main() { fp_t fp = calc1; @@ -509,11 +513,11 @@ if 'benchmark' not in sys.argv: fp_t fp2 = calc2; void *vp2 = (void*)fp2; fp_t fpb2 = (fp_t)vp2; - printf("*%d,%d,%d,%d*\\n", fp(), fpb(), fp2(), fpb2()); + printf("*%d,%d,%d,%d,%d,%d*\\n", fp(), fpb(), fp2(), fpb2(), globally1(), globally2()); return 0; } ''' - self.do_test(src, '*26,26,90,90*') + self.do_test(src, '*26,26,90,90,26,90*') def test_emptyclass(self): src = ''' |