xref: /third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/template-param-usage-14.rs
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/
112a9d9c8Sopenharmony_ci#![allow(
212a9d9c8Sopenharmony_ci    dead_code,
312a9d9c8Sopenharmony_ci    non_snake_case,
412a9d9c8Sopenharmony_ci    non_camel_case_types,
512a9d9c8Sopenharmony_ci    non_upper_case_globals
612a9d9c8Sopenharmony_ci)]
712a9d9c8Sopenharmony_ci
812a9d9c8Sopenharmony_ci#[repr(C)]
912a9d9c8Sopenharmony_ci#[derive(Debug, Default, Copy, Clone)]
1012a9d9c8Sopenharmony_cipub struct BaseIgnoresT {
1112a9d9c8Sopenharmony_ci    pub x: ::std::os::raw::c_int,
1212a9d9c8Sopenharmony_ci}
1312a9d9c8Sopenharmony_ci#[repr(C)]
1412a9d9c8Sopenharmony_ci#[derive(Debug, Copy, Clone)]
1512a9d9c8Sopenharmony_cipub struct CrtpIgnoresU {
1612a9d9c8Sopenharmony_ci    pub _base: BaseIgnoresT,
1712a9d9c8Sopenharmony_ci    pub y: ::std::os::raw::c_int,
1812a9d9c8Sopenharmony_ci}
1912a9d9c8Sopenharmony_ciimpl Default for CrtpIgnoresU {
2012a9d9c8Sopenharmony_ci    fn default() -> Self {
2112a9d9c8Sopenharmony_ci        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
2212a9d9c8Sopenharmony_ci        unsafe {
2312a9d9c8Sopenharmony_ci            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2412a9d9c8Sopenharmony_ci            s.assume_init()
2512a9d9c8Sopenharmony_ci        }
2612a9d9c8Sopenharmony_ci    }
2712a9d9c8Sopenharmony_ci}
28

Indexes created Thu Nov 07 10:32:03 CST 2024