2009-09-08 23:54:48 +00: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
|
2011-09-23 00:13:02 +00:00
|
|
|
; RUN: llc < %s -mtriple=x86_64-w64-mingw32 | FileCheck %s -check-prefix=WINDOWS
|
|
|
|
|
2007-01-12 19:20:47 +00:00
|
|
|
|
2007-01-26 08:25:06 +00:00
|
|
|
@a = hidden global i32 0
|
2011-09-23 00:13:02 +00:00
|
|
|
@b = external hidden global i32
|
|
|
|
@c = global i32* @b
|
2007-01-12 19:20:47 +00:00
|
|
|
|
2009-09-03 07:04:02 +00:00
|
|
|
define weak hidden void @t1() nounwind {
|
|
|
|
; LINUX: .hidden t1
|
2013-07-14 06:24:09 +00:00
|
|
|
; LINUX-LABEL: t1:
|
2007-01-12 19:20:47 +00:00
|
|
|
|
2009-09-03 07:04:02 +00:00
|
|
|
; DARWIN: .private_extern _t1
|
2013-07-14 06:24:09 +00:00
|
|
|
; DARWIN-LABEL: t1:
|
2011-09-23 00:13:02 +00:00
|
|
|
|
2013-07-14 06:24:09 +00:00
|
|
|
; WINDOWS-LABEL: t1:
|
2011-09-23 00:13:02 +00:00
|
|
|
; WINDOWS-NOT: hidden
|
2007-01-12 19:20:47 +00:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2009-09-03 07:04:02 +00:00
|
|
|
define weak void @t2() nounwind {
|
2011-09-23 00:13:02 +00:00
|
|
|
; DARWIN: .weak_definition _t2
|
2007-01-12 19:20:47 +00:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2011-09-23 00:13:02 +00:00
|
|
|
; LINUX: .hidden a
|
|
|
|
; LINUX: .hidden b
|
|
|
|
|
|
|
|
; DARWIN: .private_extern _a
|
|
|
|
; DARWIN-NOT: private_extern
|