aboutsummaryrefslogtreecommitdiffstats
path: root/test/Other
diff options
context:
space:
mode:
Diffstat (limited to 'test/Other')
-rw-r--r--test/Other/extract.ll7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/Other/extract.ll b/test/Other/extract.ll
index 46962d0..57573ed 100644
--- a/test/Other/extract.ll
+++ b/test/Other/extract.ll
@@ -10,13 +10,18 @@
; CHECK: define void @foo() {
; CHECK: ret void
; CHECK: }
+
+; The linkonce_odr linkage for foo() should be changed to external linkage.
+; DELETE: declare void @foo()
; DELETE: define void @bar() {
+; DELETE: call void @foo()
; DELETE: ret void
; DELETE: }
-define void @foo() {
+define linkonce_odr void @foo() {
ret void
}
define void @bar() {
+ call void @foo()
ret void
}