xref: /llvm-project/llvm/test/Feature/attributes.ll (revision 1842a2909e80da9432c5d79a95ec2c331bd99744)
1; RUN: llvm-as < %s | llvm-dis > %t1.ll
2; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3; RUN: diff %t1.ll %t2.ll
4
5@.str = private unnamed_addr constant [14 x i8] c"hello world!\0A\00", align 1
6
7define void @foo() #0 {
8entry:
9  %call = call i32 (ptr, ...) @printf(ptr @.str)
10  ret void
11}
12
13declare i32 @printf(ptr, ...)
14
15attributes #0 = { nounwind ssp uwtable }
16