summaryrefslogtreecommitdiff
path: root/tests/headers/layout.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/headers/layout.h')
-rw-r--r--tests/headers/layout.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/headers/layout.h b/tests/headers/layout.h
index d1822a04..b290ee85 100644
--- a/tests/headers/layout.h
+++ b/tests/headers/layout.h
@@ -1,6 +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)); \ No newline at end of file
+} __attribute__ ((aligned, packed));