diff options
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index 46caef9a..1ad8f3a3 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -4009,6 +4009,9 @@ at function.:blag printf("%d\n", !!strstr("cheezy", "y")); printf("%d\n", !!strstr("cheezy", "z")); printf("%d\n", !!strstr("cheezy", "_")); + + const char *str = "a big string"; + printf("%d\n", strstr(str, "big") - str); return 0; } ''' @@ -4035,6 +4038,7 @@ at function.:blag 1 1 0 +2 ''') def test_sscanf(self): |