llvm-6502/test/Transforms/LevelRaise/2002-07-16-RaiseCrash2.ll
2003-09-16 15:29:54 +00:00

13 lines
260 B
LLVM

; This crashes raise, with an cast<> failure
; RUN: llvm-as < %s | opt -raise
implementation
sbyte* %test(int* %ptr) {
%A = cast int* %ptr to sbyte *
%A = cast sbyte* %A to ulong
%B = add ulong %A, %A
%B = cast ulong %B to sbyte*
ret sbyte * %B
}