cdecl.rs 705 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. type A = fn ();
  2. type B = fn () -> ();
  3. type C = fn (i32, i32) -> bool;
  4. type D = fn (i32) -> fn (f32) -> bool;
  5. type E = fn () -> *const [i32; 16];
  6. type F = *const i32;
  7. type G = *const *const i32;
  8. type H = *const *mut i32;
  9. type I = *const [i32; 16];
  10. type J = *const fn (f32) -> f64;
  11. type K = [i32; 16];
  12. type L = [*const i32; 16];
  13. type M = [fn (i32, i32) -> bool; 16];
  14. type N = [fn (i32, i32) -> (); 16];
  15. #[no_mangle]
  16. pub extern "C" fn O() -> fn ()
  17. { }
  18. type P = fn (named1st: i32, bool, named3rd: bool, _: i32);
  19. #[no_mangle]
  20. pub extern "C" fn root(
  21. a: A,
  22. b: B,
  23. c: C,
  24. d: D,
  25. e: E,
  26. f: F,
  27. g: G,
  28. h: H,
  29. i: I,
  30. j: J,
  31. k: K,
  32. l: L,
  33. m: M,
  34. n: N,
  35. p: P
  36. ) { }