aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-06-28 19:44:56 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-07-03 15:31:04 -0700
commit56d117e286cc19f13f8470204cc5a03f1772fb3b (patch)
treed7f7bc4b49758baa4156c6b3dfbbc7a535782650
parentca7976592405d294f48e7789aacca0a3d60b25f8 (diff)
wip test for merging function tables
-rwxr-xr-xtests/runner.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index a1cec46e..580f29ab 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -10685,6 +10685,25 @@ f.close()
static Class c("side");
''', ['new main\nnew side\n', 'new side\nnew main\n'])
+ return # TODO the rest
+
+ # Class code used across modules
+ test('codecall', r'''
+ #include <stdio.h>
+ struct Class {
+ Class(const char *name);
+ };
+ ''', r'''
+ #include "header.h"
+ int main() {
+ Class c("main");
+ return 0;
+ }
+ ''', r'''
+ #include "header.h"
+ Class::Class(const char *name) { printf("new %s\n", name); }
+ ''', ['new main\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.')