From bdcd36e677cb82369659d44f44fdd2b5de8029d8 Mon Sep 17 00:00:00 2001 From: topecongiro Date: Sun, 1 Oct 2017 20:30:32 +0900 Subject: [PATCH] Add a test for #1987 --- tests/source/string-lit.rs | 4 ++++ tests/target/string-lit.rs | 5 +++++ 2 files changed, 9 insertions(+) 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" {}