aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2006-04-25 19:27:56 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2006-04-25 19:27:56 +0000
commit044edfe019968bf5778c1525b40acdd014beae62 (patch)
tree9fb9d6917a9f075e22cc489be470e706b6a003ee
parent3d1be07141aaa44b853b27749910498014f08da0 (diff)
another c99 style problem
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27969 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Analysis/DSGraph/2006-04-25-ZeroArrayStructUse.ll22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/Analysis/DSGraph/2006-04-25-ZeroArrayStructUse.ll b/test/Analysis/DSGraph/2006-04-25-ZeroArrayStructUse.ll
new file mode 100644
index 0000000000..b8238f06dd
--- /dev/null
+++ b/test/Analysis/DSGraph/2006-04-25-ZeroArrayStructUse.ll
@@ -0,0 +1,22 @@
+; RUN: analyze %s -datastructure-gc -dsgc-check-flags=x:IA
+
+; ModuleID = 'bug3.bc'
+target endian = little
+target pointersize = 32
+target triple = "i686-pc-linux-gnu"
+
+
+%struct.c99 = type {
+ uint,
+ uint,
+ [0 x sbyte*] }
+
+implementation ; Functions:
+
+
+void %foo(%struct.c99* %x) {
+entry:
+%B1 = getelementptr %struct.c99* %x, long 0, uint 2, uint 1
+%B2 = getelementptr %struct.c99* %x, long 0, uint 2, uint 2
+ret void
+}