blob: d11ca0ad920ab5211d15d4239d37280c1ce9cca8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// bindgen-flags: --no-derive-debug --blocklist-type foo --raw-line "#[repr(C)] #[derive(Copy, Clone, Default)] pub struct foo { bar: ::std::os::raw::c_int, }"
struct foo {
int bar;
};
/**
* bar should compile. It will normally derive debug, but our blocklist of foo
* and replacement for another type that doesn't implement it would prevent it
* from building if --no-derive-debug didn't work.
*/
struct bar {
struct foo foo;
int baz;
};
|