blob: 058850c7b75cac002aaa9cad5ae2b2c0bd17bc32 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu | \
Dan Gohman8c89a502007-08-15 13:36:28 +00002; RUN: grep .hidden | count 2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin8.8.0 | \
Dan Gohman8c89a502007-08-15 13:36:28 +00004; RUN: grep .private_extern | count 2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005
6%struct.Person = type { i32 }
7@a = hidden global i32 0
8@b = external global i32
9
10
11define weak hidden void @_ZN6Person13privateMethodEv(%struct.Person* %this) {
12 ret void
13}
14
15declare void @function(i32)
16
17define weak void @_ZN6PersonC1Ei(%struct.Person* %this, i32 %_c) {
18 ret void
19}
20