Sign in
gnu
/
gcc.git
/
refs/heads/master
/
.
/
gcc
/
testsuite
/
rust
/
execute
/
torture
/
helloworld1.rs
blob: 8803156b5fd6667bb52bb5fb7eb95a577f495ad0 [
file
] [
log
] [
blame
]
/* { dg-output "Hello World\r*" }*/
extern
"C"
{
fn
puts
(
s
:
*
const
i8
);
}
fn
main
()
->
i32
{
unsafe
{
let
a
=
"Hello World"
;
let
b
=
a
as
*
const
str
;
let
c
=
b
as
*
const
i8
;
puts
(
c
);
}
0
}