diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-06-29 16:24:29 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-07-03 15:31:04 -0700 |
commit | 803b1bcc09aa218efbc6588c9f8e793cb382a192 (patch) | |
tree | 503574e215d3f211c3e51585d54b79267b13388d /tests/runner.py | |
parent | ef34fd4ba002d3588cb9fc3b7798396e326ea634 (diff) |
prepare for libc++ linking test
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index dbf30239..bd8d3cec 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -10700,6 +10700,24 @@ f.close() Class::Class(const char *name) { printf("new %s\n", name); } ''', ['new main\n']) + return # TODO + + # C library usage + test('clibs', r''' + #include <iostream> + #include <string> + std::string side(); + ''', r''' + #include "header.h" + int main() { + std::cout << "hello from main " << side() << std::endl; + return 0; + } + ''', r''' + #include "header.h" + std::string side() { return "and hello from side"; } + ''', ['hello from main and hello from side\n']) + def test_symlink(self): if os.name == 'nt': return self.skip('Windows FS does not need to be tested for symlinks support, since it does not have them.') |