aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/Transforms/FunctionAttrs/comdat-ipo.ll
blob: aef66406440d8b4c7270d74048a2a5d88d8e4766 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; RUN: opt < %s -passes=function-attrs -S | FileCheck %s

; See PR26774

; CHECK-LABEL: define void @bar(ptr readonly %0) {
define void @bar(ptr readonly) {
  call void @foo(ptr %0)
  ret void
}


; CHECK-LABEL: define linkonce_odr void @foo(ptr readonly %0) {
define linkonce_odr void @foo(ptr readonly) {
  call void @bar(ptr %0)
  ret void
}