diff options
Diffstat (limited to 'bindgen-tests/tests/headers/use-core.h')
-rw-r--r-- | bindgen-tests/tests/headers/use-core.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bindgen-tests/tests/headers/use-core.h b/bindgen-tests/tests/headers/use-core.h new file mode 100644 index 00000000..5ee0ac6f --- /dev/null +++ b/bindgen-tests/tests/headers/use-core.h @@ -0,0 +1,13 @@ +// bindgen-flags: --use-core --raw-line '#![cfg(not(target_os="windows"))] extern crate core;' --with-derive-hash --with-derive-partialeq --with-derive-eq + +struct foo { + int a, b; + void* bar; +}; + +union { + int bar; + long baz; +} bazz; + +typedef void (*fooFunction)(int bar); |