summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/2003-09-30-StructLayout.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/2003-09-30-StructLayout.c')
-rw-r--r--clang/test/CodeGen/2003-09-30-StructLayout.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/clang/test/CodeGen/2003-09-30-StructLayout.c b/clang/test/CodeGen/2003-09-30-StructLayout.c
new file mode 100644
index 0000000..45ef69c
--- /dev/null
+++ b/clang/test/CodeGen/2003-09-30-StructLayout.c
@@ -0,0 +1,18 @@
+// RUN: %clang_cc1 -emit-llvm %s -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;
+}