blob: 915c3e89a271241ebb5bb3415744c411e026903d [file] [log] [blame]
Anton Korobeynikov7f705592007-01-12 19:20:47 +00001; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu &&
Chris Lattnerdef27602007-01-15 18:32:24 +00002; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu | grep ".hidden" | wc -l | grep 2 &&
3; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin8.8.0 | grep ".private_extern" | wc -l | grep 2
Anton Korobeynikov7f705592007-01-12 19:20:47 +00004
5%struct.Person = type { i32 }
6%a = hidden global i32 0
7%b = external global i32
8
9implementation ; Functions:
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