aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/wasm/1 basic
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/wasm/1 basic')
-rw-r--r--meson/test cases/wasm/1 basic/hello.c7
-rw-r--r--meson/test cases/wasm/1 basic/hello.cpp7
-rw-r--r--meson/test cases/wasm/1 basic/hello.html8
-rw-r--r--meson/test cases/wasm/1 basic/meson.build4
4 files changed, 26 insertions, 0 deletions
diff --git a/meson/test cases/wasm/1 basic/hello.c b/meson/test cases/wasm/1 basic/hello.c
new file mode 100644
index 000000000..a104b3780
--- /dev/null
+++ b/meson/test cases/wasm/1 basic/hello.c
@@ -0,0 +1,7 @@
+#include <stdio.h>
+
+int main() {
+ printf("Hello World\n");
+ return 0;
+}
+
diff --git a/meson/test cases/wasm/1 basic/hello.cpp b/meson/test cases/wasm/1 basic/hello.cpp
new file mode 100644
index 000000000..119dc8b9f
--- /dev/null
+++ b/meson/test cases/wasm/1 basic/hello.cpp
@@ -0,0 +1,7 @@
+#include<iostream>
+
+int main(void) {
+ std::cout << "Hello World" << std::endl;
+ return 0;
+}
+
diff --git a/meson/test cases/wasm/1 basic/hello.html b/meson/test cases/wasm/1 basic/hello.html
new file mode 100644
index 000000000..637bc2074
--- /dev/null
+++ b/meson/test cases/wasm/1 basic/hello.html
@@ -0,0 +1,8 @@
+<html>
+ <head>
+ <meta charset="utf-8">
+ </head>
+ <body>
+ <script src="hello.js"></script>
+ </body>
+</html>
diff --git a/meson/test cases/wasm/1 basic/meson.build b/meson/test cases/wasm/1 basic/meson.build
new file mode 100644
index 000000000..1092a9ba7
--- /dev/null
+++ b/meson/test cases/wasm/1 basic/meson.build
@@ -0,0 +1,4 @@
+project('emcctest', 'c', 'cpp')
+
+executable('hello-c', 'hello.c')
+executable('hello', 'hello.cpp')