blob: 6ca0b1343c7839d4f9e35fd206a705f1bb1eb578 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
; 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
}
|