New testcase
authorChris Lattner <sabre@nondot.org>
Thu, 22 May 2003 15:33:33 +0000 (15:33 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 22 May 2003 15:33:33 +0000 (15:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6279 91177308-0d34-0410-b5e6-96231b3b80d8

test/C++Frontend/2003-05-22-LocalTypeTest.c [new file with mode: 0644]

diff --git a/test/C++Frontend/2003-05-22-LocalTypeTest.c b/test/C++Frontend/2003-05-22-LocalTypeTest.c
new file mode 100644 (file)
index 0000000..af60a2e
--- /dev/null
@@ -0,0 +1,10 @@
+struct sometimes {
+  short offset; short bit;
+  short live_length; short calls_crossed;
+} Y;
+
+int main() {
+  struct sometimes { int X, Y; } S;
+  S.X = 1;
+  return Y.offset;
+}