summaryrefslogtreecommitdiff
path: root/tests/headers/packed-n-with-padding.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/headers/packed-n-with-padding.h')
-rw-r--r--tests/headers/packed-n-with-padding.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/headers/packed-n-with-padding.h b/tests/headers/packed-n-with-padding.h
new file mode 100644
index 00000000..8a6233b5
--- /dev/null
+++ b/tests/headers/packed-n-with-padding.h
@@ -0,0 +1,8 @@
+#pragma pack(push, 2)
+struct Packed {
+ char a;
+ short b;
+ char c;
+ int d;
+};
+#pragma pack(pop)