diff options
author | julien.hamaide <julien.hamaide@fishingcactus.com> | 2012-02-07 13:22:39 +0100 |
---|---|---|
committer | julien.hamaide <julien.hamaide@fishingcactus.com> | 2012-02-07 13:22:39 +0100 |
commit | 29fbebcc21df391a8f244d39634812a4fe6d2e5e (patch) | |
tree | 02d18667909e78b68e580a6e4565eeb37122943f /tests | |
parent | b782221bf8a5d1271c3277e27360adc1d5e7bb75 (diff) |
Fix libcxx locale (now use emscripten mask table )
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runner.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index ea7a72f4..0dde33c0 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -3742,6 +3742,28 @@ def process(filename): } ''' self.do_run(src, "some string constant") + + def test_istream(self): + if self.emcc_args is None: return self.skip('requires libcxx') + + src = ''' + #include <string> + #include <sstream> + #include <iostream> + + int main() + { + std::string mystring("1 2 3"); + std::istringstream is(mystring); + int one, two, three; + + is >> one >> two >> three; + + printf( "%i %i %i", one, two, three ); + } + ''' + self.do_run(src, "1 2 3") + def test_fs_base(self): Settings.INCLUDE_FULL_LIBRARY = 1 |