Dan Gohman | fea1dd0 | 2009-08-25 15:38:29 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as %s -o %t1.bc |
Chandler Carruth | 4177e6f | 2012-07-02 12:47:22 +0000 | [diff] [blame] | 2 | ; RUN: echo "declare void @__eprintf(i8*, i8*, i32, i8*) noreturn define void @foo() { tail call void @__eprintf( i8* undef, i8* undef, i32 4, i8* null ) noreturn nounwind unreachable }" | llvm-as -o %t2.bc |
Eli Bendersky | d7170ea | 2013-04-09 16:51:13 +0000 | [diff] [blame] | 3 | ; RUN: llvm-link %t2.bc %t1.bc -S | FileCheck %s |
| 4 | ; RUN: llvm-link %t1.bc %t2.bc -S | FileCheck %s |
| 5 | ; CHECK: __eprintf |
Chris Lattner | d1ec48c | 2008-07-14 06:49:45 +0000 | [diff] [blame] | 6 | |
| 7 | ; rdar://6072702 |
| 8 | |
| 9 | @__eprintf = external global i8* ; <i8**> [#uses=1] |
| 10 | |
| 11 | define i8* @test() { |
David Blaikie | 7c9c6ed | 2015-02-27 21:17:42 +0000 | [diff] [blame] | 12 | %A = load i8*, i8** @__eprintf ; <i8*> [#uses=1] |
Chris Lattner | d1ec48c | 2008-07-14 06:49:45 +0000 | [diff] [blame] | 13 | ret i8* %A |
| 14 | } |