aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/GlobalOpt
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-08 20:57:46 +0000
committerChris Lattner <sabre@nondot.org>2004-10-08 20:57:46 +0000
commit508540321bbe3fdfc2db286f281b3137a0e8717a (patch)
tree1b844d20439177520ea32c1f18eb5cb1d451f6df /test/Transforms/GlobalOpt
parente40e2d1a71777289a8bfb9d77452754478722e55 (diff)
downloadexternal_llvm-508540321bbe3fdfc2db286f281b3137a0e8717a.zip
external_llvm-508540321bbe3fdfc2db286f281b3137a0e8717a.tar.gz
external_llvm-508540321bbe3fdfc2db286f281b3137a0e8717a.tar.bz2
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16856 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/GlobalOpt')
-rw-r--r--test/Transforms/GlobalOpt/iterate.llx10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/GlobalOpt/iterate.llx b/test/Transforms/GlobalOpt/iterate.llx
new file mode 100644
index 0000000..1d46808
--- /dev/null
+++ b/test/Transforms/GlobalOpt/iterate.llx
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | opt -globalopt | llvm-dis | not grep %G
+
+%G = internal global int 0
+%H = internal global { int* } { int* %G }
+
+int %loadg() {
+ %G = load int** getelementptr ({int*}* %H, int 0, uint 0)
+ %GV = load int* %G
+ ret int %GV
+}