summaryrefslogtreecommitdiff
path: root/llvm/test/Linker/Inputs/byref-type-input.ll
blob: b744c44ecae8c47d3d19ea1f011cbf1df6cb329c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
%a = type { i64 }
%struct = type { i32, i8 }

define void @g(ptr byref(%a)) {
  ret void
}

declare void @baz(ptr byref(%struct))

define void @foo(ptr byref(%struct) %a) {
  call void @baz(ptr byref(%struct) %a)
  ret void
}