aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/NVPTX/weak-linkage.ll
blob: 5df57b29249ec00403639b03209f1f7393cc7951 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s

; CHECK: // .weak foo
; CHECK: .weak .func foo
define weak void @foo() {
  ret void
}

; CHECK: // .weak baz
; CHECK: .weak .func baz
define weak_odr void @baz() {
  ret void
}

; CHECK: .visible .func bar
define void @bar() {
  ret void
}