2007-04-16 17:36:08 +00:00
|
|
|
; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu | \
|
|
|
|
; RUN: grep .hidden | wc -l | grep 2
|
|
|
|
; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin8.8.0 | \
|
|
|
|
; RUN: grep .private_extern | wc -l | grep 2
|
2007-01-12 19:20:47 +00:00
|
|
|
|
|
|
|
%struct.Person = type { i32 }
|
2007-01-26 08:25:06 +00:00
|
|
|
@a = hidden global i32 0
|
|
|
|
@b = external global i32
|
2007-01-12 19:20:47 +00:00
|
|
|
|
|
|
|
|
2007-01-26 08:25:06 +00:00
|
|
|
define weak hidden void @_ZN6Person13privateMethodEv(%struct.Person* %this) {
|
2007-01-12 19:20:47 +00:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2007-01-26 08:25:06 +00:00
|
|
|
declare void @function(i32)
|
2007-01-12 19:20:47 +00:00
|
|
|
|
2007-01-26 08:25:06 +00:00
|
|
|
define weak void @_ZN6PersonC1Ei(%struct.Person* %this, i32 %_c) {
|
2007-01-12 19:20:47 +00:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|