diff options
author | Chris Lattner <sabre@nondot.org> | 2002-08-30 23:22:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-08-30 23:22:15 +0000 |
commit | eabb4950bd77f90b94c2925521224a237eb79da2 (patch) | |
tree | b737de2ef3de279989e1eef8fde5f1cba223d790 /test/Transforms/SCCP | |
parent | c5394837fe65235f82fd0e5b169a2d7fa875d09e (diff) | |
download | external_llvm-eabb4950bd77f90b94c2925521224a237eb79da2.zip external_llvm-eabb4950bd77f90b94c2925521224a237eb79da2.tar.gz external_llvm-eabb4950bd77f90b94c2925521224a237eb79da2.tar.bz2 |
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3554 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/SCCP')
-rw-r--r-- | test/Transforms/SCCP/2002-08-30-GetElementPtrTest.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Transforms/SCCP/2002-08-30-GetElementPtrTest.ll b/test/Transforms/SCCP/2002-08-30-GetElementPtrTest.ll new file mode 100644 index 0000000..c3c5d70 --- /dev/null +++ b/test/Transforms/SCCP/2002-08-30-GetElementPtrTest.ll @@ -0,0 +1,13 @@ +; RUN: if as < %s | opt -sccp | dis | grep '%X' +; RUN: then exit 1 +; RUN: else exit 0 +; RUN: fi + +%G = uninitialized global [40x int] + +implementation + +int* %test() { + %X = getelementptr [40x int]* %G, uint 0, uint 0 + ret int* %X +} |