Test case for ensuring correct reading back of cast constant expressions.
[oota-llvm.git] / test / Bytecode / 2006-12-11-Cast-ConstExpr.ll
1 ; This test ensures that we get a bitcast constant expression in and out,
2 ; not a sitofp constant expression. 
3 ; RUN: llvm-as < %s | llvm-dis | grep 'bitcast ('
4 %G = external global int
5
6 float %tryit(int %A) {
7    ret float bitcast( int ptrtoint (int* %G to int) to float)
8 }