summaryrefslogtreecommitdiff
path: root/bindgen-tests/tests/headers/repr-align.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'bindgen-tests/tests/headers/repr-align.hpp')
-rw-r--r--bindgen-tests/tests/headers/repr-align.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/bindgen-tests/tests/headers/repr-align.hpp b/bindgen-tests/tests/headers/repr-align.hpp
new file mode 100644
index 00000000..3347594b
--- /dev/null
+++ b/bindgen-tests/tests/headers/repr-align.hpp
@@ -0,0 +1,11 @@
+// bindgen-flags: --raw-line '#![cfg(feature = "nightly")]' --rust-target 1.25 -- -std=c++11
+
+struct alignas(8) a {
+ int b;
+ int c;
+};
+
+struct alignas(double) b {
+ int b;
+ int c;
+};