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


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

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