New testcase, the BU pass is marking the global complete in the globals graph.
authorChris Lattner <sabre@nondot.org>
Tue, 22 Mar 2005 22:07:15 +0000 (22:07 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 22 Mar 2005 22:07:15 +0000 (22:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20772 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/DSGraph/2005-03-22-IncompleteGlobal.ll [new file with mode: 0644]

diff --git a/test/Analysis/DSGraph/2005-03-22-IncompleteGlobal.ll b/test/Analysis/DSGraph/2005-03-22-IncompleteGlobal.ll
new file mode 100644 (file)
index 0000000..2a35638
--- /dev/null
@@ -0,0 +1,12 @@
+; RUN: analyze %s -datastructure-gc  -dsgc-check-flags=G:GIM -dsgc-dspass=bu
+
+
+%S = type { double, int }
+
+%G = external global %S
+
+void %main() {
+       %b = getelementptr %S* %G, long 0, ubyte 0
+       store double 0.1, double* %b
+       ret void
+}