Add unicode test to ui tests
This commit is contained in:
parent
c38d5df4a2
commit
0b727f0801
2 changed files with 22 additions and 0 deletions
14
src/test/ui/codemap_tests/unicode.rs
Normal file
14
src/test/ui/codemap_tests/unicode.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// rustc-env:RUST_NEW_ERROR_FORMAT
|
||||
extern "路濫狼á́́" fn foo() {}
|
||||
|
||||
fn main() { }
|
||||
8
src/test/ui/codemap_tests/unicode.stderr
Normal file
8
src/test/ui/codemap_tests/unicode.stderr
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
error: invalid ABI: expected one of [cdecl, stdcall, fastcall, vectorcall, aapcs, win64, Rust, C, system, rust-intrinsic, rust-call, platform-intrinsic], found `路濫狼á́́`
|
||||
--> $DIR/unicode.rs:12:8
|
||||
|
|
||||
12 | extern "路濫狼á́́" fn foo() {}
|
||||
| ^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue