mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-13 00:51:20 +00:00
Isolated emscripten in new lib
This commit is contained in:
15
lib/emscripten/emtests/test_em_asm_unused_arguments.cpp
Normal file
15
lib/emscripten/emtests/test_em_asm_unused_arguments.cpp
Normal file
@ -0,0 +1,15 @@
|
||||
// Copyright 2018 The Emscripten Authors. All rights reserved.
|
||||
// Emscripten is available under two separate licenses, the MIT license and the
|
||||
// University of Illinois/NCSA Open Source License. Both these licenses can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include <stdio.h>
|
||||
#include <emscripten.h>
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
int sum = EM_ASM_INT({
|
||||
return $0 + $2;
|
||||
}, 0, 1, 2);
|
||||
printf("0+2=%d\n", sum);
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user