File tree Expand file tree Collapse file tree 2 files changed +8
-17
lines changed
branches/snap-stage3/src/test/run-pass Expand file tree Collapse file tree 2 files changed +8
-17
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 296e60be6b027a52de58251848037a92f23a0878
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: c8f5b701dcf0b7dc4d78ef0d29f10e4f080b2517
4
+ refs/heads/snap-stage3: 9e8a270681aa22b56cdb41f5e2537dace5c7fe75
5
5
refs/heads/try: 38201d7c6bf0c32b0e5bdc8ecd63976ebc1b3a4c
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- // ignore-test - FIXME(#8538) some kind of problem linking induced by extern "C" fns
12
-
13
11
// Smallest hello world with no runtime
14
12
15
13
#![ no_std]
16
14
17
- // This is an unfortunate thing to have to do on linux :(
18
- #[ cfg( target_os = "linux" ) ]
19
- #[ doc( hidden) ]
20
- pub mod linkhack {
21
- #[ link_args="-lrustrt -lrt" ]
22
- extern { }
23
- }
15
+ extern crate libc;
24
16
25
- extern {
26
- fn puts ( s : * u8 ) ;
27
- }
17
+ extern { fn puts ( s : * u8 ) ; }
18
+ extern "rust-intrinsic" { fn transmute < T , U > ( t : T ) -> U ; }
28
19
29
- extern "rust-intrinsic" {
30
- fn transmute < T , U > ( t : T ) -> U ;
31
- }
20
+ #[ no_mangle]
21
+ pub extern fn rust_stack_exhausted ( ) { }
32
22
33
23
#[ start]
34
- pub fn main ( _: int , _: * * u8 , _: * u8 ) -> int {
24
+ #[ no_split_stack]
25
+ fn main ( _: int , _: * * u8 ) -> int {
35
26
unsafe {
36
27
let ( ptr, _) : ( * u8 , uint ) = transmute ( "Hello!" ) ;
37
28
puts ( ptr) ;
You can’t perform that action at this time.
0 commit comments