summaryrefslogtreecommitdiff
path: root/test/Other
diff options
context:
space:
mode:
Diffstat (limited to 'test/Other')
-rw-r--r--test/Other/extract-linkonce.ll11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/Other/extract-linkonce.ll b/test/Other/extract-linkonce.ll
index 4c6b6b76a4..31fbf3ac46 100644
--- a/test/Other/extract-linkonce.ll
+++ b/test/Other/extract-linkonce.ll
@@ -1,16 +1,15 @@
; RUN: llvm-extract -func foo -S < %s | FileCheck %s
; RUN: llvm-extract -delete -func foo -S < %s | FileCheck --check-prefix=DELETE %s
-; Test that linkonce definitions are mapped to weak so that they are not
-; dropped.
+; Test that we don't convert weak_odr to external definitions.
-; CHECK: @bar = external global i32
-; CHECK: define weak i32* @foo() {
+; CHECK: @bar = external hidden global i32
+; CHECK: define hidden i32* @foo() {
; CHECK-NEXT: ret i32* @bar
; CHECK-NEXT: }
-; DELETE: @bar = weak global i32 42
-; DELETE: declare i32* @foo()
+; DELETE: @bar = hidden global i32 42
+; DELETE: declare hidden i32* @foo()
@bar = linkonce global i32 42