Compiling with debuginfo causes incorrect output on wasm32-unknown-unknown target #46339
Labels
A-debuginfo
Area: Debugging information in compiled programs (DWARF, PDB, etc.)
C-bug
Category: This is a bug.
O-wasm
Target: WASM (WebAssembly), http://webassembly.org/
The following example will incorrectly return 1 instead of 10 when compiling with the
wasm32-unknown-unknown
target and-C debuginfo=2
:HTML:
rustc command:
Removing -C debuginfo=2 gives the correct output
rustc version:
rustc 1.24.0-nightly (560a5da9f 2017-11-27)
The text was updated successfully, but these errors were encountered: