summaryrefslogtreecommitdiff
path: root/test/Analysis
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-03-22 22:07:15 +0000
committerChris Lattner <sabre@nondot.org>2005-03-22 22:07:15 +0000
commit4c10375785fc03f4fbc4ca41a14a8d864d440fe2 (patch)
tree895f93723996c5e1bd5a75b98d059540492bffd1 /test/Analysis
parentf2dce8d29b58a86fe5a9221e47247bcbe0d97118 (diff)
downloadllvm-4c10375785fc03f4fbc4ca41a14a8d864d440fe2.tar.gz
llvm-4c10375785fc03f4fbc4ca41a14a8d864d440fe2.tar.bz2
llvm-4c10375785fc03f4fbc4ca41a14a8d864d440fe2.tar.xz
New testcase, the BU pass is marking the global complete in the globals graph.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20772 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis')
-rw-r--r--test/Analysis/DSGraph/2005-03-22-IncompleteGlobal.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Analysis/DSGraph/2005-03-22-IncompleteGlobal.ll b/test/Analysis/DSGraph/2005-03-22-IncompleteGlobal.ll
new file mode 100644
index 0000000000..2a35638bf4
--- /dev/null
+++ b/test/Analysis/DSGraph/2005-03-22-IncompleteGlobal.ll
@@ -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
+}