aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index ea0609bc..7ae2dc41 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -2309,6 +2309,22 @@ cat |umber one top notchfi FI FO FUM WHEN WHERE WHY HOW WHO|''', ['wowie', 'too'
'''
self.do_run(src, 'Assertion failed: 1 == false')
+ def test_libcextra(self):
+ src = r'''
+ #include <stdio.h>
+ #include <wchar.h>
+
+ int main()
+ {
+ const wchar_t* wstr = L"Hello";
+
+ printf("wcslen: %d\n", wcslen(wstr));
+
+ return 0;
+ }
+ '''
+ self.do_run(src, 'wcslen: 5')
+
def test_longjmp(self):
src = r'''
#include <stdio.h>