16 lines · plain
1; RUN: not llvm-as < %s 2>&1 | FileCheck %s2 3declare ptr @dummy()4 5; CHECK: nofree applies only to inttoptr instruction6define void @test_not_inttoptr() {7 call ptr @dummy(), !nofree !{}8 ret void9}10 11; CHECK: nofree metadata must be empty12define void @test_invalid_arg(i32 %p) {13 inttoptr i32 %p to ptr, !nofree !{i32 0}14 ret void15}16