1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-30 23:42:52 +01:00
llvm-mirror/test/Regression/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
}