summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-09-30 17:13:34 +0000
committerChris Lattner <sabre@nondot.org>2003-09-30 17:13:34 +0000
commitc3a3d04b49a85626ee99889af2f8a021ee7446a6 (patch)
treebd39571b38dda9f39fd4f724ca092022429c0a5c /test
parent559a6c136da72a69987fe91c39bc8b857b21eac5 (diff)
downloadllvm-c3a3d04b49a85626ee99889af2f8a021ee7446a6.tar.gz
llvm-c3a3d04b49a85626ee99889af2f8a021ee7446a6.tar.bz2
llvm-c3a3d04b49a85626ee99889af2f8a021ee7446a6.tar.xz
new testcase distilled from 177.mesa
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8766 91177308-0d34-0410-b5e6-96231b3b80d8
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;
+}