2006-11-18 06:08:21 +00:00
|
|
|
; A very rudimentary test on AliasAnalysis::getModRefInfo.
|
2007-04-16 15:15:52 +00:00
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | \
|
2007-04-16 17:36:08 +00:00
|
|
|
; RUN: opt -print-all-alias-modref-info -aa-eval -disable-output |& \
|
2007-04-16 15:15:52 +00:00
|
|
|
; RUN: not grep NoModRef
|
2006-11-18 05:52:18 +00:00
|
|
|
|
|
|
|
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
|
|
|
}
|