aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-03-12 22:38:31 +0000
committerChris Lattner <sabre@nondot.org>2004-03-12 22:38:31 +0000
commit130608905527299186c424c86cb385ec1b1a3335 (patch)
treed73440f3b5b783dedba31fea34d44dd2f22567b5
parent744b5fb93f86e35093ea6379ae3b9c3f9cac75a9 (diff)
downloadexternal_llvm-130608905527299186c424c86cb385ec1b1a3335.zip
external_llvm-130608905527299186c424c86cb385ec1b1a3335.tar.gz
external_llvm-130608905527299186c424c86cb385ec1b1a3335.tar.bz2
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12348 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Analysis/BasicAA/gcsetest.ll10
-rw-r--r--test/Transforms/BasicAA/gcsetest.ll10
2 files changed, 20 insertions, 0 deletions
diff --git a/test/Analysis/BasicAA/gcsetest.ll b/test/Analysis/BasicAA/gcsetest.ll
index 0cc0af2..4af5cc1 100644
--- a/test/Analysis/BasicAA/gcsetest.ll
+++ b/test/Analysis/BasicAA/gcsetest.ll
@@ -34,3 +34,13 @@ out:
ret int %X
}
+declare void %external()
+
+int %test3() {
+ %X = alloca int
+ store int 7, int* %X
+ call void %external()
+ %V = load int* %X
+ ret int %V
+}
+
diff --git a/test/Transforms/BasicAA/gcsetest.ll b/test/Transforms/BasicAA/gcsetest.ll
index 0cc0af2..4af5cc1 100644
--- a/test/Transforms/BasicAA/gcsetest.ll
+++ b/test/Transforms/BasicAA/gcsetest.ll
@@ -34,3 +34,13 @@ out:
ret int %X
}
+declare void %external()
+
+int %test3() {
+ %X = alloca int
+ store int 7, int* %X
+ call void %external()
+ %V = load int* %X
+ ret int %V
+}
+