diff options
| author | Jonathan Turner <jturner@mozilla.com> | 2016-07-14 10:55:09 -0400 |
|---|---|---|
| committer | Jonathan Turner <jturner@mozilla.com> | 2016-07-14 10:55:09 -0400 |
| commit | 0b727f080108607188db8b56e47548a277cde0ff (patch) | |
| tree | 7e07a1046ef804b4eef0b2fa699f803a746abb37 /src | |
| parent | c38d5df4a2a65ed11fefaf792b6535451c2fd767 (diff) | |
| download | rust-0b727f080108607188db8b56e47548a277cde0ff.tar.gz rust-0b727f080108607188db8b56e47548a277cde0ff.zip | |
Add unicode test to ui tests
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ui/codemap_tests/unicode.rs | 14 | ||||
| -rw-r--r-- | src/test/ui/codemap_tests/unicode.stderr | 8 |
2 files changed, 22 insertions, 0 deletions
diff --git a/src/test/ui/codemap_tests/unicode.rs b/src/test/ui/codemap_tests/unicode.rs new file mode 100644 index 00000000000..19660133d62 --- /dev/null +++ b/src/test/ui/codemap_tests/unicode.rs @@ -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() { } diff --git a/src/test/ui/codemap_tests/unicode.stderr b/src/test/ui/codemap_tests/unicode.stderr new file mode 100644 index 00000000000..178bee7b7f3 --- /dev/null +++ b/src/test/ui/codemap_tests/unicode.stderr @@ -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 + |
