]> git.lizzy.rs Git - rust.git/commitdiff
Add unicode test to ui tests
authorJonathan Turner <jturner@mozilla.com>
Thu, 14 Jul 2016 14:55:09 +0000 (10:55 -0400)
committerJonathan Turner <jturner@mozilla.com>
Thu, 14 Jul 2016 14:55:09 +0000 (10:55 -0400)
src/test/ui/codemap_tests/unicode.rs [new file with mode: 0644]
src/test/ui/codemap_tests/unicode.stderr [new file with mode: 0644]

diff --git a/src/test/ui/codemap_tests/unicode.rs b/src/test/ui/codemap_tests/unicode.rs
new file mode 100644 (file)
index 0000000..1966013
--- /dev/null
@@ -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 (file)
index 0000000..178bee7
--- /dev/null
@@ -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
+