1 // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 // This test was actually never run before because commands were only parsed up to the first
12 // function definition but the test relied on the function being above the commands. Ignore for now.
16 let args : ~[StrBuf] = ::std::os::args();
17 ::std::io::println(args[0]);
20 // ignore-android: FIXME(#10381)
22 // This test case checks whether compile unit names are set correctly, so that the correct default
23 // source file can be found.
27 // gdb-check:1[...]fn main() {
28 // gdb-check:2[...]let args : ~[StrBuf] = ::std::os::args();
29 // gdb-check:3[...]::std::io::println(args[0]);