brintos

brintos / llvm-project-archived public Read only

0
0
Text · 524 B · 0bc7374 Raw
15 lines · plain
1; RUN: llvm-as %s -o %t1.bc2; RUN: echo "declare void @__eprintf(ptr, ptr, i32, ptr) noreturn     define void @foo() {      tail call void @__eprintf( ptr undef, ptr undef, i32 4, ptr null ) noreturn nounwind       unreachable }" | llvm-as -o %t2.bc3; RUN: llvm-link %t2.bc %t1.bc -S | FileCheck %s4; RUN: llvm-link %t1.bc %t2.bc -S | FileCheck %s5; CHECK: __eprintf6 7; rdar://60727028 9@__eprintf = external global ptr		; <ptr> [#uses=1]10 11define ptr @test() {12	%A = load ptr, ptr @__eprintf		; <ptr> [#uses=1]13	ret ptr %A14}15