OSDN Git Service

new testcase distilled from 177.mesa
authorChris Lattner <sabre@nondot.org>
Tue, 30 Sep 2003 17:13:34 +0000 (17:13 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 30 Sep 2003 17:13:34 +0000 (17:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8766 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2003-09-30-StructLayout.c [new file with mode: 0644]

diff --git a/test/CFrontend/2003-09-30-StructLayout.c b/test/CFrontend/2003-09-30-StructLayout.c
new file mode 100644 (file)
index 0000000..2dc8122
--- /dev/null
@@ -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;
+}