This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This is a RANDOMLY GENERATED PROGRAM. | |
* | |
* Generator: csmith 2.3.0 | |
* Git version: 3453904 | |
* Options: --no-volatiles --no-packed-struct --no-math64 --no-bitfields | |
* Seed: 2179568236 | |
*/ | |
#include "csmith.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/tests/test_core.py b/tests/test_core.py | |
index 0cf3327..c43e5ab 100644 | |
--- a/tests/test_core.py | |
+++ b/tests/test_core.py | |
@@ -5574,6 +5574,31 @@ PORT: 3979 | |
self.emcc_args += ['--js-library', path_from_root('tests', 'unicode_library.js')] | |
self.do_run(open(os.path.join(self.get_dir(), 'main.cpp'), 'r').read(), u'Unicode snowman \u2603 says hello!') | |
+ def test_js_library_features(self): | |
+ open(os.path.join(self.get_dir(), 'main.cpp'), 'w').write(r''' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<memory.h> | |
#include<emscripten.h> | |
#define TOTAL 6000000 | |
#define CHUNK 2048 | |
typedef volatile char vc; | |
int main() { |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.text | |
.file "/tmp/tmpku7hg1/a.out.bc" | |
.hidden main | |
.globl main | |
.type main,@function | |
main: # @main | |
.result i32 | |
.local i32, i32, i32 | |
# BB#0: | |
i32.const $push5=, __stack_pointer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef __SIZE_TYPE__ size_t; | |
static int mymemcmp1 (unsigned long int, unsigned long int) | |
__attribute__ ((__nothrow__)); | |
__inline static int | |
mymemcmp1 (unsigned long int a, unsigned long int b) | |
{ | |
long int srcp1 = (long int) &a; | |
long int srcp2 = (long int) &b; | |
unsigned long int a0, b0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/shell-interface.h b/src/shell-interface.h | |
index 55f9b2a..db2f033 100644 | |
--- a/src/shell-interface.h | |
+++ b/src/shell-interface.h | |
@@ -86,6 +86,8 @@ struct ShellExternalInterface : ModuleInstance::ExternalInterface { | |
} | |
} memory; | |
+ std::vector<Name> table; | |
+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This is a RANDOMLY GENERATED PROGRAM. | |
* | |
* Generator: csmith 2.3.0 | |
* Git version: 3453904 | |
* Options: --no-volatiles --no-packed-struct --no-bitfields --max-funcs 30 --lang-cpp | |
* Seed: 1095227420 | |
*/ | |
#include "csmith.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/check.py b/check.py | |
index b94819e..1698c5d 100755 | |
--- a/check.py | |
+++ b/check.py | |
@@ -371,6 +371,8 @@ if len(requested) == 0: | |
else: | |
spec_tests = requested[:] | |
+#spec_tests = [] | |
+ |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(module | |
(import "env" "memoryBase" (global $memoryBase i32)) | |
(data (get_global $memoryBase) "\04\04\00\00\05\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00\03\00\00\00,\10\00\00\00\04\00\00\00\00\00\00\00\00\00\00\01\00\00\00\00\00\00\00\00\00\00\00\00\00\00\n\ff\ff\ff\ff\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\04\04\00\00hello, world!\n\00\11\00\n\00\11\11\11\00\00\00\00\05\00\00\00\00\00\00\t\00\00\00\00\0b\00\00\00\00\00\00\00\00\11\00\0f\n\11\11\11\03\n\07\00\01\13\t\0b\0b\00\00\t\06\0b\00\00\0b\00\06\11\00\00\00\11\11\11\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\0b\00\00\00\00\00\00\00\00\11\00\n\n\11\11\11\00\n\00\00\02\00\t\0b\00\00\00\t\00\0b\00\00\0b\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\0c\00\00\00\00\00\00\00\00\00\00\00\0c\00\00\00\00\0c\00\00\00\00\t\0c\00\00\00\00\00\0c\00\00\0c\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00 |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(module | |
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32))) | |
(type $FUNCSIG$id (func (param f64) (result i32))) | |
(type $FUNCSIG$iii (func (param i32 i32) (result i32))) | |
(type $FUNCSIG$ii (func (param i32) (result i32))) | |
(type $FUNCSIG$vi (func (param i32))) | |
(type $FUNCSIG$i (func (result i32))) | |
(type $FUNCSIG$v (func)) | |
(type $FUNCSIG$vii (func (param i32 i32))) | |
(import "env" "STACKTOP" (global $STACKTOP$asm2wasm$import i32)) |