e19d552987
Former-commit-id: 4db48158d3a35497b8f118ab21b5f08ac3d86d98
11 lines
209 B
LLVM
11 lines
209 B
LLVM
; RUN: not llvm-as < %s > /dev/null 2>&1
|
|
|
|
declare void @llvm.gcroot(i8**, i8*)
|
|
|
|
define void @f(i8* %x) {
|
|
%root = alloca i8*
|
|
call void @llvm.gcroot(i8** %root, i8* null)
|
|
store i8* %x, i8** %root
|
|
ret void
|
|
}
|