about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2013-05-21 12:55:54 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2013-05-21 12:55:54 -0700
commitb6cf84f3e03cabc6a52b102b1178df319eb773b4 (patch)
treef5dd5ed2b1997f797b26ccf2054d2a8cbee74472
parent64963d6cbaea86e0d2a58f507e57a76da7512e3e (diff)
downloadrust-b6cf84f3e03cabc6a52b102b1178df319eb773b4.tar.gz
rust-b6cf84f3e03cabc6a52b102b1178df319eb773b4.zip
testsuite: Test for #4780
-rw-r--r--src/test/run-pass/multibyte.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/run-pass/multibyte.rs b/src/test/run-pass/multibyte.rs
new file mode 100644
index 00000000000..7cb959b3437
--- /dev/null
+++ b/src/test/run-pass/multibyte.rs
@@ -0,0 +1,14 @@
+// Copyright 2012 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.
+
+// Test that multibyte characters don't crash the compiler
+fn main() {
+    io::println("마이너스 사인이 없으면");
+}