summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/extern_not_explicit.rs
blob: 9d6c4c2a1cd52f82b259dce2229836577241a5e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// rustfmt-force_explicit_abi: false

 extern  "C" {
   fn some_fn() -> ();
 }

 extern "C" fn sup() {

 }

type funky_func = extern "C" fn (unsafe extern "rust-call" fn(*const JSJitInfo, *mut JSContext,
                                              HandleObject, *mut libc::c_void, u32,
                                              *mut JSVal)
                                              -> u8);