From d3e2e9ad393d41d6e5d3bd706de33a9058e3a0f7 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 24 Feb 2020 10:29:05 -0800 Subject: [PATCH] tests/wasm: Add C language as well as C++ language to test --- test cases/wasm/1 basic/hello.c | 7 +++++++ test cases/wasm/1 basic/meson.build | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 test cases/wasm/1 basic/hello.c diff --git a/test cases/wasm/1 basic/hello.c b/test cases/wasm/1 basic/hello.c new file mode 100644 index 000000000..a104b3780 --- /dev/null +++ b/test cases/wasm/1 basic/hello.c @@ -0,0 +1,7 @@ +#include + +int main() { + printf("Hello World\n"); + return 0; +} + diff --git a/test cases/wasm/1 basic/meson.build b/test cases/wasm/1 basic/meson.build index 8fe713c73..1092a9ba7 100644 --- a/test cases/wasm/1 basic/meson.build +++ b/test cases/wasm/1 basic/meson.build @@ -1,3 +1,4 @@ -project('emcctest', 'cpp') +project('emcctest', 'c', 'cpp') +executable('hello-c', 'hello.c') executable('hello', 'hello.cpp')