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