mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
17 lines
280 B
LLVM
17 lines
280 B
LLVM
|
; RUN: not llvm-as < %s
|
||
|
; PR1633
|
||
|
|
||
|
%meta = type { i8* }
|
||
|
%obj = type { %meta* }
|
||
|
|
||
|
declare void @llvm.gcroot(%obj**, %meta*)
|
||
|
|
||
|
define void @f() {
|
||
|
entry:
|
||
|
%local.obj = alloca %obj*
|
||
|
%local.meta = alloca %meta
|
||
|
call void @llvm.gcroot(%obj** %local.obj, %meta* %local.meta)
|
||
|
|
||
|
ret void
|
||
|
}
|