aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-25 12:58:25 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-03-25 12:58:25 -0700
commitad285f60d0be807e7e49e7c86ca8f9bedec4714f (patch)
tree67768bb7707d6672659597abc295345109b3fbce /tests
parent09221ebd18ec0074b25d593400f040ee460526aa (diff)
remove symbol removing hack; export all malloc symbols as weak; add test for a case where symbol removing made us not merge llvm constructors properly1.3.5
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runner.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index f0b5445c..e3b62110 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -6245,6 +6245,34 @@ def process(filename):
}
'''
self.do_run(src, "some string constant")
+
+ def test_std_cout_new(self):
+ src = '''
+ #include <iostream>
+
+ struct NodeInfo { //structure that we want to transmit to our shaders
+ float x;
+ float y;
+ float s;
+ float c;
+ };
+ const int nbNodes = 100;
+ NodeInfo * data = new NodeInfo[nbNodes]; //our data that will be transmitted using float texture.
+
+ template<int i>
+ void printText( const char (&text)[ i ] )
+ {
+ std::cout << text << std::endl;
+ }
+
+ int main()
+ {
+ printText( "some string constant" );
+ return 0;
+ }
+ '''
+
+ self.do_run(src, "some string constant")
def test_istream(self):
if self.emcc_args is None: return self.skip('requires libcxx')