1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-27 14:02:50 +01:00
llvm-mirror/test/Regression/Transforms/LevelRaise/2002-07-16-RaiseCrash2.ll

13 lines
255 B
LLVM
Raw Normal View History

2002-07-16 23:33:27 +02:00
; This crashes raise, with an cast<> failure
; RUN: 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*
2002-07-16 23:33:27 +02:00
ret sbyte * %B
}