summaryrefslogtreecommitdiffstats
path: root/test/Transforms/IndMemRem/2009-01-24-Noalias.ll
blob: b6d98031b7328a9a0c96c1a6bdbcfa48036bc412 (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: opt < %s -indmemrem -S | grep bounce | grep noalias

declare i8* @malloc(i32)

@g = external global i8*

define void @test() {
  %A = bitcast i8* (i32) * @malloc to i8*
  store i8* %A, i8** @g
  ret void
}
OpenPOWER on IntegriCloud