2009-09-09 07:54:48 +08:00
|
|
|
; RUN: llc < %s -mtriple=i686-apple-darwin | grep weak_reference | count 2
|
2006-12-01 17:18:20 +08:00
|
|
|
|
2008-02-21 15:42:26 +08:00
|
|
|
@Y = global i32 (i8*)* @X ; <i32 (i8*)**> [#uses=0]
|
2006-12-01 17:18:20 +08:00
|
|
|
|
2008-02-21 15:42:26 +08:00
|
|
|
declare extern_weak i32 @X(i8*)
|
|
|
|
|
|
|
|
define void @bar() {
|
|
|
|
tail call void (...)* @foo( )
|
|
|
|
ret void
|
2006-12-01 17:18:20 +08:00
|
|
|
}
|
|
|
|
|
2008-02-21 15:42:26 +08:00
|
|
|
declare extern_weak void @foo(...)
|
|
|
|
|