2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-02-26 02:25:10 -06:00
|
|
|
// Regression test for issue #48508:
|
|
|
|
//
|
|
|
|
// Confusion between global and local file offsets caused incorrect handling of multibyte character
|
|
|
|
// spans when compiling multiple files. One visible effect was an ICE generating debug information
|
|
|
|
// when a multibyte character is at the end of a scope. The problematic code is actually in
|
|
|
|
// issue-48508-aux.rs
|
|
|
|
|
|
|
|
// compile-flags:-g
|
2019-08-17 00:08:01 -05:00
|
|
|
// ignore-asmjs wasm2js does not support source maps yet
|
2018-02-26 02:25:10 -06:00
|
|
|
|
2020-06-12 20:58:24 -05:00
|
|
|
#![allow(uncommon_codepoints)]
|
2018-02-26 02:25:10 -06:00
|
|
|
|
|
|
|
#[path = "issue-48508-aux.rs"]
|
|
|
|
mod other_file;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
other_file::other();
|
|
|
|
}
|