summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/CFrontend/2003-09-30-StructLayout.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CFrontend/2003-09-30-StructLayout.c b/test/CFrontend/2003-09-30-StructLayout.c
new file mode 100644
index 0000000000..2dc81225e9
--- /dev/null
+++ b/test/CFrontend/2003-09-30-StructLayout.c
@@ -0,0 +1,16 @@
+enum En {
+ ENUM_VAL
+};
+
+struct St {
+ unsigned char A;
+ enum En B;
+ unsigned char C;
+ enum En D;
+ float E;
+};
+
+
+void func(struct St* A) {
+ A->D = ENUM_VAL;
+}