2006-11-18 06:08:21 +00:00
|
|
|
; A very rudimentary test on AliasAnalysis::getModRefInfo.
|
2006-11-18 08:06:17 +00:00
|
|
|
; RUN: llvm-as < %s | opt -print-all-alias-modref-info -aa-eval -disable-output &&
|
2006-11-18 05:52:18 +00:00
|
|
|
; RUN: llvm-as < %s | opt -print-all-alias-modref-info -aa-eval -disable-output 2>&1 | not grep NoModRef
|
|
|
|
|
|
|
|
int %callee() {
|
2006-11-18 08:06:17 +00:00
|
|
|
%X = alloca { int, int }
|
|
|
|
%Y = getelementptr { int, int }* %X, uint 0, uint 0
|
|
|
|
%Z = load int* %Y
|
|
|
|
ret int %Z
|
2006-11-18 05:52:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int %caller() {
|
2006-11-18 08:06:17 +00:00
|
|
|
%X = call int %callee()
|
|
|
|
ret int %X
|
2006-11-18 05:52:18 +00:00
|
|
|
}
|