1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-01 16:33:37 +01:00
llvm-mirror/test/Analysis/BasicAA/2003-11-04-SimpleCases.ll

17 lines
472 B
LLVM
Raw Normal View History

; This testcase consists of alias relations which should be completely
; resolvable by basicaa.
; RUN: opt < %s -aa-eval -print-may-aliases -disable-output \
2008-02-14 07:56:27 +01:00
; RUN: |& not grep May:
2008-02-14 07:56:27 +01:00
%T = type { i32, [10 x i8] }
2008-02-14 07:56:27 +01:00
define void @test(%T* %P) {
%A = getelementptr %T* %P, i64 0
%B = getelementptr %T* %P, i64 0, i32 0
%C = getelementptr %T* %P, i64 0, i32 1
%D = getelementptr %T* %P, i64 0, i32 1, i64 0
%E = getelementptr %T* %P, i64 0, i32 1, i64 5
ret void
}