aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/ConstProp/float-to-ptr-cast.ll
blob: dc6c391976bde6c8d8b02dd5b3344701af9eddc3 (plain)
1
2
3
4
5
6
7
8
9
; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | grep -F 'ret int* null' | wc -l | grep 2
int* %test1() {
  %X = cast float 0.0 to int*
  ret int* %X
}

int* %test2() {
  ret int* cast (float 0.0 to int*)
}