blob: 25eb4367c69593135df109d6a213adb5c9074395 [file] [log] [blame]
Reid Spencer3da59db2006-11-27 01:05:10 +00001; test that casted mallocs get converted to malloc of the right type
2; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep bitcast
3
4int* %test(uint %size) {
5 %X = malloc long, uint %size
6 %ret = bitcast long* %X to int*
7 ret int* %ret
8}