aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/NVPTX/weak-linkage.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/NVPTX/weak-linkage.ll')
-rw-r--r--test/CodeGen/NVPTX/weak-linkage.ll8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/CodeGen/NVPTX/weak-linkage.ll b/test/CodeGen/NVPTX/weak-linkage.ll
index 7a13357..5df57b2 100644
--- a/test/CodeGen/NVPTX/weak-linkage.ll
+++ b/test/CodeGen/NVPTX/weak-linkage.ll
@@ -1,11 +1,17 @@
; 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