summaryrefslogtreecommitdiff
path: root/bindgen-tests/tests/headers/layout.h
diff options
context:
space:
mode:
Diffstat (limited to 'bindgen-tests/tests/headers/layout.h')
-rw-r--r--bindgen-tests/tests/headers/layout.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/bindgen-tests/tests/headers/layout.h b/bindgen-tests/tests/headers/layout.h
new file mode 100644
index 00000000..b290ee85
--- /dev/null
+++ b/bindgen-tests/tests/headers/layout.h
@@ -0,0 +1,10 @@
+// bindgen-flags: --rust-target 1.21
+//
+// FIXME: https://github.com/rust-lang/rust-bindgen/issues/1498
+
+struct header
+{
+ char proto;
+ unsigned int size __attribute__ ((packed));
+ unsigned char data[] __attribute__ ((aligned(8)));
+} __attribute__ ((aligned, packed));