1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-01 00:12:50 +01:00
llvm-mirror/test/Analysis/BasicAA/2003-03-04-GEPCrash.ll

8 lines
356 B
LLVM
Raw Normal View History

; RUN: opt < %s -basicaa -aa-eval -disable-output 2>/dev/null
2003-03-04 17:33:52 +01:00
; Test for a bug in BasicAA which caused a crash when querying equality of P1&P2
2008-02-14 07:56:27 +01:00
define void @test({[2 x i32],[2 x i32]}* %A, i64 %X, i64 %Y) {
%P1 = getelementptr {[2 x i32],[2 x i32]}* %A, i64 0, i32 0, i64 %X
%P2 = getelementptr {[2 x i32],[2 x i32]}* %A, i64 0, i32 1, i64 %Y
2003-03-04 17:33:52 +01:00
ret void
}