diff options
| author | bors <bors@rust-lang.org> | 2013-03-20 14:27:56 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-03-20 14:27:56 -0700 |
| commit | 51da7d4bc7a100f5343bc727fb2fb87b05e35c84 (patch) | |
| tree | f4591c43277f53007674be474d09715de6ed358c /src | |
| parent | 99ac243e7b789b54231e4607aa775174c7c3995a (diff) | |
| parent | 373504a7ac6801293ae65316625ace667842f5b8 (diff) | |
| download | rust-51da7d4bc7a100f5343bc727fb2fb87b05e35c84.tar.gz rust-51da7d4bc7a100f5343bc727fb2fb87b05e35c84.zip | |
auto merge of #5453 : catamorphism/rust/issue-4120, r=catamorphism
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/run-pass/issue-4120.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/run-pass/issue-4120.rs b/src/test/run-pass/issue-4120.rs new file mode 100644 index 00000000000..16946f32e31 --- /dev/null +++ b/src/test/run-pass/issue-4120.rs @@ -0,0 +1,17 @@ +// 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. + +fn main() +{ + unsafe { + libc::exit(0); + } + error!("ack"); +} |
