1 #[cfg(not(target_os = "macos"))]
2 #[link_section=".moretext"]
3 fn i_live_in_more_text() -> &'static str {
7 #[cfg(not(target_os = "macos"))]
9 static magic: uint = 42;
11 #[cfg(not(target_os = "macos"))]
12 #[link_section=".mut"]
13 static mut frobulator: uint = 0xdeadbeef;
15 #[cfg(target_os = "macos")]
16 #[link_section="__TEXT,__moretext"]
17 fn i_live_in_more_text() -> &'static str {
21 #[cfg(target_os = "macos")]
22 #[link_section="__RODATA,__imm"]
23 static magic: uint = 42;
25 #[cfg(target_os = "macos")]
26 #[link_section="__DATA,__mut"]
27 static mut frobulator: uint = 0xdeadbeef;
31 frobulator = 0xcafebabe;
32 printfln!("%? %? %?", i_live_in_more_text(), magic, frobulator);