~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/Linker/override-different-linkage.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llvm-link %s -override %S/Inputs/override-different-linkage.ll -S | FileCheck %s
 
2
; RUN: llvm-link -override %S/Inputs/override-different-linkage.ll %s -S | FileCheck %s
 
3
 
 
4
 
 
5
; CHECK-LABEL: define linkonce i32 @foo
 
6
; CHECK-NEXT: entry:
 
7
; CHECK-NEXT: ret i32 4
 
8
define weak i32 @foo(i32 %i) {
 
9
entry:
 
10
  %add = add nsw i32 %i, %i
 
11
  ret i32 %add
 
12
}
 
13
 
 
14
; Function Attrs: nounwind ssp uwtable
 
15
define i32 @main(i32 %argc, i8** %argv) {
 
16
entry:
 
17
  %a = call i32 @foo(i32 2)
 
18
  ret i32 %a
 
19
}