aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-30 15:17:39 +0000
committerChris Lattner <sabre@nondot.org>2003-06-30 15:17:39 +0000
commit69134dcafaa3aa70c1a1153e96db9103300f1b5b (patch)
treefcbc373dea2b6c07a4df58f9bb3c2c3e1485bb37
parent98f0ef58cde7250e944e7136a7342b1515ef298a (diff)
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7010 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Analysis/DSGraph/2003-06-30-TopDownResolve.ll20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/Analysis/DSGraph/2003-06-30-TopDownResolve.ll b/test/Analysis/DSGraph/2003-06-30-TopDownResolve.ll
new file mode 100644
index 0000000000..9c06032302
--- /dev/null
+++ b/test/Analysis/DSGraph/2003-06-30-TopDownResolve.ll
@@ -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
+}