rename.rs 449 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. struct A {
  2. x: i32,
  3. y: f32,
  4. }
  5. #[repr(C)]
  6. struct B {
  7. x: i32,
  8. y: f32,
  9. }
  10. union C {
  11. x: i32,
  12. y: f32,
  13. }
  14. #[repr(C)]
  15. union D {
  16. x: i32,
  17. y: f32,
  18. }
  19. #[repr(u8)]
  20. enum E {
  21. x = 0,
  22. y = 1,
  23. }
  24. type F = A;
  25. #[no_mangle]
  26. pub static G: i32 = 10;
  27. pub const H: i32 = 10;
  28. pub const I: isize = 10 as *mut F as isize;
  29. #[no_mangle]
  30. pub extern "C" fn root(
  31. a: *const A,
  32. b: B,
  33. c: C,
  34. d: D,
  35. e: E,
  36. f: F,
  37. ) { }