2009-09-09 07:54:48 +08:00
|
|
|
; RUN: llc < %s -mtriple=i686-pc-linux-gnu | FileCheck %s -check-prefix=LINUX
|
|
|
|
; RUN: llc < %s -mtriple=i686-apple-darwin8 | FileCheck %s -check-prefix=DARWIN
|
2007-01-13 03:20:47 +08:00
|
|
|
|
2007-01-26 16:25:06 +08:00
|
|
|
@a = hidden global i32 0
|
|
|
|
@b = external global i32
|
2007-01-13 03:20:47 +08:00
|
|
|
|
2009-09-03 15:04:02 +08:00
|
|
|
define weak hidden void @t1() nounwind {
|
|
|
|
; LINUX: .hidden t1
|
|
|
|
; LINUX: t1:
|
2007-01-13 03:20:47 +08:00
|
|
|
|
2009-09-03 15:04:02 +08:00
|
|
|
; DARWIN: .private_extern _t1
|
|
|
|
; DARWIN: t1:
|
2007-01-13 03:20:47 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2009-09-03 15:04:02 +08:00
|
|
|
define weak void @t2() nounwind {
|
|
|
|
; LINUX: t2:
|
|
|
|
; LINUX: .hidden a
|
2007-01-13 03:20:47 +08:00
|
|
|
|
2009-09-03 15:04:02 +08:00
|
|
|
; DARWIN: t2:
|
|
|
|
; DARWIN: .private_extern _a
|
2007-01-13 03:20:47 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|