about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorCadence Marseille <cadencemarseille@gmail.com>2013-12-18 09:06:11 -0500
committerCadence Marseille <cadencemarseille@gmail.com>2013-12-18 18:33:33 -0500
commitf24787dbfb356daebe8fcc439d85c0dc3c954d06 (patch)
tree9603075c6784138526bd985a1ef64f334703fa6f /src/test
parentc87b9d37f7a72e8632af676c2bb579f8967d9cd8 (diff)
downloadrust-f24787dbfb356daebe8fcc439d85c0dc3c954d06.tar.gz
rust-f24787dbfb356daebe8fcc439d85c0dc3c954d06.zip
Fix #10755 - ICE: `--linker=`
Trap the io_error condition so that a more informative error message is
displayed when the linker program cannot be started, such as when the
name of the linker binary is accidentally mistyped.

closes #10755
Diffstat (limited to 'src/test')
-rw-r--r--src/test/compile-fail/issue-10755.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/compile-fail/issue-10755.rs b/src/test/compile-fail/issue-10755.rs
new file mode 100644
index 00000000000..91afa62b58c
--- /dev/null
+++ b/src/test/compile-fail/issue-10755.rs
@@ -0,0 +1,15 @@
+// Copyright 2013 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.
+
+// compile-flags: --linker=llllll
+// error-pattern: the linker `llllll`
+
+fn main() {
+}