1; RUN: llc < %s -mtriple=arm-linux | FileCheck %s -check-prefix=LINUX
2; RUN: llc < %s -mtriple=arm-apple-darwin | FileCheck %s -check-prefix=DARWIN
3
4@a = hidden global i32 0
5@b = external global i32
6
7define weak hidden void @t1() nounwind {
8; LINUX: .hidden t1
9; LINUX-LABEL: t1:
10
11; DARWIN: .private_extern _t1
12; DARWIN-LABEL: t1:
13  ret void
14}
15
16define weak void @t2() nounwind {
17; LINUX-LABEL: t2:
18; LINUX: .hidden a
19
20; DARWIN-LABEL: t2:
21; DARWIN: .private_extern _a
22  ret void
23}
24