brintos

brintos / llvm-project-archived public Read only

0
0
Text · 427 B · 8eadcd4 Raw
20 lines · plain
1; RUN: llvm-link %s -override %S/Inputs/override.ll -S | FileCheck %s2; RUN: llvm-link -override %S/Inputs/override.ll %s -S | FileCheck %s3 4 5; CHECK-LABEL: define i32 @foo6; CHECK-NEXT: entry:7; CHECK-NEXT: ret i32 48define i32 @foo(i32 %i) {9entry:10  %add = add nsw i32 %i, %i11  ret i32 %add12}13 14; Function Attrs: nounwind ssp uwtable15define i32 @main(i32 %argc, ptr %argv) {16entry:17  %a = call i32 @foo(i32 2)18  ret i32 %a19}20