]> git.lizzy.rs Git - rust.git/blob - src/test/debuginfo/issue11600.rs
test: Remove all uses of `~str` from the test suite.
[rust.git] / src / test / debuginfo / issue11600.rs
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.
4 //
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.
10
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.
13 // ignore-test
14
15 fn main() {
16     let args : ~[StrBuf] = ::std::os::args();
17     ::std::io::println(args[0]);
18 }
19
20 // ignore-android: FIXME(#10381)
21
22 // This test case checks whether compile unit names are set correctly, so that the correct default
23 // source file can be found.
24
25 // compile-flags:-g
26 // gdb-command:list
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]);
30 // gdb-check:4[...]}