xref: /llvm-project/llvm/test/Assembler/invalid-immarg.ll (revision 75a479221b72c8b4827470485949cebf67d1c967)
1; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s
2
3; CHECK: Attribute 'immarg' is incompatible with other attributes
4declare void @llvm.immarg.byval(ptr byval(i32) immarg)
5
6; CHECK: Attribute 'immarg' is incompatible with other attributes
7declare void @llvm.immarg.inalloca(ptr inalloca(i32) immarg)
8
9; CHECK: Attribute 'immarg' is incompatible with other attributes
10declare void @llvm.immarg.inreg(i32 inreg immarg)
11
12; CHECK: Attribute 'immarg' is incompatible with other attributes
13declare void @llvm.immarg.nest(ptr nest immarg)
14
15; CHECK: Attribute 'immarg' is incompatible with other attributes
16declare void @llvm.immarg.sret(ptr sret(i32) immarg)
17
18; CHECK: Attribute 'immarg' is incompatible with other attributes
19declare void @llvm.immarg.zeroext(i32 zeroext immarg)
20
21; CHECK: Attribute 'immarg' is incompatible with other attributes
22declare void @llvm.immarg.signext(i32 signext immarg)
23
24; CHECK: Attribute 'immarg' is incompatible with other attributes
25declare void @llvm.immarg.returned(i32 returned immarg)
26
27; CHECK: Attribute 'immarg' is incompatible with other attributes
28declare void @llvm.immarg.noalias(ptr noalias immarg)
29
30; CHECK: Attribute 'immarg' is incompatible with other attributes
31declare void @llvm.immarg.readnone(ptr readnone immarg)
32
33; CHECK: Attribute 'immarg' is incompatible with other attributes
34declare void @llvm.immarg.readonly(ptr readonly immarg)
35