summaryrefslogtreecommitdiffstats
path: root/llvm
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
commit31514c1c921ce058d905276a8690ff9b2fa4379f (patch)
treea9431ac9b06c8eaedd254b7d52f3607ff161d1c3 /llvm
parentd9b889c4df55b27a7b8f02836fb36580ca62c321 (diff)
downloadbcm5719-llvm-31514c1c921ce058d905276a8690ff9b2fa4379f.tar.gz
bcm5719-llvm-31514c1c921ce058d905276a8690ff9b2fa4379f.zip
New testcase
llvm-svn: 7010
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/Regression/Analysis/DSGraph/2003-06-30-TopDownResolve.ll20
1 files changed, 20 insertions, 0 deletions
diff --git a/llvm/test/Regression/Analysis/DSGraph/2003-06-30-TopDownResolve.ll b/llvm/test/Regression/Analysis/DSGraph/2003-06-30-TopDownResolve.ll
new file mode 100644
index 00000000000..9c060323023
--- /dev/null
+++ b/llvm/test/Regression/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
+}
OpenPOWER on IntegriCloud