blob: 2968c6917ce14686f33ef89a00c77e5fbe7fa7ef [file] [log] [blame]
Matthijs Kooijman1cd8f112008-06-10 12:57:32 +00001; RUN: not llvm-as < %s >& /dev/null
Gordon Henriksene1433f22007-12-25 02:31:26 +00002
3declare void @llvm.gcroot(i8**, i8*)
4
5define void @f(i8* %x) {
6 %root = alloca i8*
7 call void @llvm.gcroot(i8** %root, i8* null)
8 store i8* %x, i8** %root
9 ret void
10}