https://github.com/epiqc/ScaffCC
Raw File
Tip revision: c9bb19c5906c44795fde065e4a9c6b1e92c04968 authored by EPiQC on 06 August 2017, 15:43:30 UTC
Merge branch 'master' of https://github.com/epiqc/ScaffCC
Tip revision: c9bb19c
2003-04-21-Linkage.ll
; RUN: echo {@X = linkonce global i32 5 \
; RUN:   define linkonce i32 @foo() \{ ret i32 7 \} } | llvm-as > %t.1.bc
; RUN: llvm-as %s -o %t.2.bc
; RUN: llvm-link %t.1.bc  %t.2.bc
@X = external global i32 

declare i32 @foo() 

define void @bar() {
	load i32* @X
	call i32 @foo()
	ret void
}

back to top