☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
execute
/
torture
/
helloworld1.rs
☽
☼
gcc/testsuite/rust/execute/torture/helloworld1.rs
code
plain
raw
1
/* { dg-output "Hello World\r*" }*/
2
extern "C" {
3
fn puts(s: *const i8);
4
}
5
6
fn main() -> i32 {
7
unsafe {
8
let a = "Hello World";
9
let b = a as *const str;
10
let c = b as *const i8;
11
12
puts(c);
13
}
14
0
15
}