35 lines · plain
1; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s2 3; CHECK: Attribute 'immarg' is incompatible with other attributes except the 'range' attribute4declare void @llvm.immarg.byval(ptr byval(i32) immarg)5 6; CHECK: Attribute 'immarg' is incompatible with other attributes except the 'range' attribute7declare void @llvm.immarg.inalloca(ptr inalloca(i32) immarg)8 9; CHECK: Attribute 'immarg' is incompatible with other attributes except the 'range' attribute10declare void @llvm.immarg.inreg(i32 inreg immarg)11 12; CHECK: Attribute 'immarg' is incompatible with other attributes except the 'range' attribute13declare void @llvm.immarg.nest(ptr nest immarg)14 15; CHECK: Attribute 'immarg' is incompatible with other attributes except the 'range' attribute16declare void @llvm.immarg.sret(ptr sret(i32) immarg)17 18; CHECK: Attribute 'immarg' is incompatible with other attributes except the 'range' attribute19declare void @llvm.immarg.zeroext(i32 zeroext immarg)20 21; CHECK: Attribute 'immarg' is incompatible with other attributes except the 'range' attribute22declare void @llvm.immarg.signext(i32 signext immarg)23 24; CHECK: Attribute 'immarg' is incompatible with other attributes except the 'range' attribute25declare void @llvm.immarg.returned(i32 returned immarg)26 27; CHECK: Attribute 'immarg' is incompatible with other attributes except the 'range' attribute28declare void @llvm.immarg.noalias(ptr noalias immarg)29 30; CHECK: Attribute 'immarg' is incompatible with other attributes except the 'range' attribute31declare void @llvm.immarg.readnone(ptr readnone immarg)32 33; CHECK: Attribute 'immarg' is incompatible with other attributes except the 'range' attribute34declare void @llvm.immarg.readonly(ptr readonly immarg)35