diff options
author | Chris Lattner <sabre@nondot.org> | 2004-10-08 20:57:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-10-08 20:57:46 +0000 |
commit | 508540321bbe3fdfc2db286f281b3137a0e8717a (patch) | |
tree | 1b844d20439177520ea32c1f18eb5cb1d451f6df /test/Transforms/GlobalOpt | |
parent | e40e2d1a71777289a8bfb9d77452754478722e55 (diff) | |
download | external_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.llx | 10 |
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 +} |