aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC/2003-09-30-StructLayout.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC/2003-09-30-StructLayout.c')
-rw-r--r--test/FrontendC/2003-09-30-StructLayout.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/FrontendC/2003-09-30-StructLayout.c b/test/FrontendC/2003-09-30-StructLayout.c
new file mode 100644
index 0000000..3a40166
--- /dev/null
+++ b/test/FrontendC/2003-09-30-StructLayout.c
@@ -0,0 +1,18 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
+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;
+}