try gating early, add non-ascii test
This commit is contained in:
parent
78e3455d37
commit
bf3ca5979e
3 changed files with 11 additions and 1 deletions
10
tests/ui/rfcs/rfc-3348-c-string-literals/non-ascii.rs
Normal file
10
tests/ui/rfcs/rfc-3348-c-string-literals/non-ascii.rs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// run-pass
|
||||
|
||||
#![feature(c_str_literals)]
|
||||
|
||||
fn main() {
|
||||
assert_eq!(
|
||||
c"\xEF\x80🦀\u{1F980}".to_bytes_with_nul(),
|
||||
&[0xEF, 0x80, 0xF0, 0x9F, 0xA6, 0x80, 0xF0, 0x9F, 0xA6, 0x80, 0x00],
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue