diff options
author | Chris Lattner <sabre@nondot.org> | 2003-03-04 16:33:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-03-04 16:33:52 +0000 |
commit | 3fc7b6bd65efa5bc09080650d2a05abc2cf5f008 (patch) | |
tree | 106ad39626a257ea8ad924de14155e10fcf95b75 /test/Analysis/BasicAA/2003-03-04-GEPCrash.ll | |
parent | 0252e49f6d6973b6f347c8feafc49e28af27163a (diff) | |
download | llvm-3fc7b6bd65efa5bc09080650d2a05abc2cf5f008.tar.gz llvm-3fc7b6bd65efa5bc09080650d2a05abc2cf5f008.tar.bz2 llvm-3fc7b6bd65efa5bc09080650d2a05abc2cf5f008.tar.xz |
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5694 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/BasicAA/2003-03-04-GEPCrash.ll')
-rw-r--r-- | test/Analysis/BasicAA/2003-03-04-GEPCrash.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Analysis/BasicAA/2003-03-04-GEPCrash.ll b/test/Analysis/BasicAA/2003-03-04-GEPCrash.ll new file mode 100644 index 0000000000..0dd936aaee --- /dev/null +++ b/test/Analysis/BasicAA/2003-03-04-GEPCrash.ll @@ -0,0 +1,7 @@ +; RUN: as < %s | opt -basicaa -aa-eval -disable-output +; Test for a bug in BasicAA which caused a crash when querying equality of P1&P2 +void %test({[2 x int],[2 x int]}* %A, long %X, long %Y) { + %P1 = getelementptr {[2 x int],[2 x int]}* %A, long 0, ubyte 0, long %X + %P2 = getelementptr {[2 x int],[2 x int]}* %A, long 0, ubyte 1, long %Y + ret void +} |