aboutsummaryrefslogtreecommitdiff
path: root/tests/hello_libcxx_mod2a.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-04 17:07:25 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-03-04 17:07:25 -0800
commit26a3a085fc1be4f3d648a2e5e6b05c54f4b04a00 (patch)
treee791121bed35a7bfe1377ac8eca0151309842c24 /tests/hello_libcxx_mod2a.cpp
parent719e805ecfe14ec3582bb8285527e4a9fde5cb21 (diff)
emscripten_jcache_printf
Diffstat (limited to 'tests/hello_libcxx_mod2a.cpp')
-rw-r--r--tests/hello_libcxx_mod2a.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/hello_libcxx_mod2a.cpp b/tests/hello_libcxx_mod2a.cpp
new file mode 100644
index 00000000..f48ad4fe
--- /dev/null
+++ b/tests/hello_libcxx_mod2a.cpp
@@ -0,0 +1,11 @@
+#include <iostream>
+#include <emscripten.h>
+
+int main()
+{
+ std::cout << "hello, world!" << std::endl;
+ emscripten_jcache_printf("waka %d waka\n", 5);
+ emscripten_jcache_printf("yet another printf %.2f %d\n", 5.5, 66);
+ return 0;
+}
+