mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +00:00
11 lines
193 B
LLVM
11 lines
193 B
LLVM
|
; This crashes raise, with an cast<> failure
|
||
|
|
||
|
; RUN: as < %s | opt -raise
|
||
|
|
||
|
implementation
|
||
|
sbyte* %test(int* %ptr) {
|
||
|
%A = cast int* %ptr to sbyte *
|
||
|
%B = add sbyte* %A, %A
|
||
|
ret sbyte * %B
|
||
|
}
|