summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-48508.rs
blob: b66e09620f4eb7f36bcc7a722dd149156c929d3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// run-pass
// 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

#![allow(uncommon_codepoints)]

#[path = "issue-48508-aux.rs"]
mod other_file;

fn main() {
    other_file::other();
}