aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/hidden-vis.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-02-19 17:33:52 +0000
committerChris Lattner <sabre@nondot.org>2008-02-19 17:33:52 +0000
commit22c31769fb1448dba3247780181d527a852d7694 (patch)
tree18f099814ff8d4af2c81c03f70106246f05c2508 /test/CodeGen/X86/hidden-vis.ll
parentec5ec88d15b0aab050141b7247ac0335ebcb97ac (diff)
downloadexternal_llvm-22c31769fb1448dba3247780181d527a852d7694.zip
external_llvm-22c31769fb1448dba3247780181d527a852d7694.tar.gz
external_llvm-22c31769fb1448dba3247780181d527a852d7694.tar.bz2
rename tests to avoid a test- prefix when they aren't related to the test instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47329 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/hidden-vis.ll')
-rw-r--r--test/CodeGen/X86/hidden-vis.ll20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/CodeGen/X86/hidden-vis.ll b/test/CodeGen/X86/hidden-vis.ll
new file mode 100644
index 0000000..058850c
--- /dev/null
+++ b/test/CodeGen/X86/hidden-vis.ll
@@ -0,0 +1,20 @@
+; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu | \
+; RUN: grep .hidden | count 2
+; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin8.8.0 | \
+; RUN: grep .private_extern | count 2
+
+%struct.Person = type { i32 }
+@a = hidden global i32 0
+@b = external global i32
+
+
+define weak hidden void @_ZN6Person13privateMethodEv(%struct.Person* %this) {
+ ret void
+}
+
+declare void @function(i32)
+
+define weak void @_ZN6PersonC1Ei(%struct.Person* %this, i32 %_c) {
+ ret void
+}
+