aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/macro21.rs
blob: 9a1d773ec4b07835bf8e728fa3698eb77ba2ffdb (plain)
1
2
3
4
5
6
7
8
9
macro_rules! c_fn {
    {$name:ident ($($arg_name:ident $arg_ty:ty),*) -> $ret_ty:ty} => {
        fn $name($($arg_name: $arg_ty)*) -> $ret_ty;
    };
}

extern "C" {
    c_fn! {puts (s *const i8) -> i64}
}