diff --git a/tests/source/string-lit.rs b/tests/source/string-lit.rs index eb3fb7012e4..b282656d470 100644 --- a/tests/source/string-lit.rs +++ b/tests/source/string-lit.rs @@ -56,3 +56,7 @@ fn issue_1282() { } } } + +// #1987 +#[link_args = "-s NO_FILESYSTEM=1 -s NO_EXIT_RUNTIME=1 -s EXPORTED_RUNTIME_METHODS=[\"_malloc\"] -s NO_DYNAMIC_EXECUTION=1 -s ELIMINATE_DUPLICATE_FUNCTIONS=1 -s EVAL_CTORS=1"] +extern "C" {} diff --git a/tests/target/string-lit.rs b/tests/target/string-lit.rs index e262d69b43e..97cf0213a16 100644 --- a/tests/target/string-lit.rs +++ b/tests/target/string-lit.rs @@ -57,3 +57,8 @@ fn issue_1282() { } } } + +// #1987 +#[link_args = "-s NO_FILESYSTEM=1 -s NO_EXIT_RUNTIME=1 -s EXPORTED_RUNTIME_METHODS=[\"_malloc\"] \ + -s NO_DYNAMIC_EXECUTION=1 -s ELIMINATE_DUPLICATE_FUNCTIONS=1 -s EVAL_CTORS=1"] +extern "C" {}