mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-27 12:43:37 +08:00
25 lines
311 B
Rust
25 lines
311 B
Rust
|
use widestring_suffix::widestrs;
|
||
|
|
||
|
mod wchar {
|
||
|
macro_rules! L {
|
||
|
($string:expr) => {
|
||
|
42
|
||
|
};
|
||
|
}
|
||
|
|
||
|
pub(crate) use L;
|
||
|
}
|
||
|
|
||
|
#[widestrs]
|
||
|
mod stuff {
|
||
|
pub fn test1() {
|
||
|
let s = "abc"L;
|
||
|
assert_eq!(s, 42);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#[test]
|
||
|
fn test_widestring() {
|
||
|
stuff::test1();
|
||
|
}
|