The function that does nothing but call malloc is noalias return.
[oota-llvm.git] / test / Transforms / IndMemRem / 2009-01-24-Noalias.ll
1 ; RUN: llvm-as < %s | opt -indmemrem | llvm-dis | grep bounce | grep noalias
2
3 declare i8* @malloc(i32)
4
5 @g = external global i8*
6
7 define void @test() {
8   %A = bitcast i8* (i32) * @malloc to i8*
9   store i8* %A, i8** @g
10   ret void
11 }