New testcase
authorChris Lattner <sabre@nondot.org>
Mon, 30 Jun 2003 15:17:39 +0000 (15:17 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 30 Jun 2003 15:17:39 +0000 (15:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7010 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/DSGraph/2003-06-30-TopDownResolve.ll [new file with mode: 0644]

diff --git a/test/Analysis/DSGraph/2003-06-30-TopDownResolve.ll b/test/Analysis/DSGraph/2003-06-30-TopDownResolve.ll
new file mode 100644 (file)
index 0000000..9c06032
--- /dev/null
@@ -0,0 +1,20 @@
+; RUN: analyze %s -datastructure-gc -dsgc-dspass=td -dsgc-abort-if-incomplete=X
+
+%G = internal global int 5
+
+implementation
+
+internal void %leaf(int *%X) {
+       store int 0, int* %X
+       ret void
+}
+
+internal void %intermediate(void(int*)* %Fn, int* %Ptr) {
+       call void %Fn(int* %Ptr)
+       ret void
+}
+
+int %main() {
+       call void %intermediate(void(int*)* %leaf, int* %G)
+       ret int 0
+}