llvm.org GIT mirror llvm / 86431e9
Adding a test case for revision 132825. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132830 91177308-0d34-0410-b5e6-96231b3b80d8 Chad Rosier 8 years ago
1 changed file(s) with 18 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; This test case ensures that when the visibility of a global declaration is
1 ; emitted they are not treated as definitions. Test case for r132825.
2 ; Fixes .
3 ;
4 ; RUN: llc -mtriple=x86_64-apple-darwin %s -o - | FileCheck %s
5
6 @foo_private_extern_str = external hidden global i8*
7
8 define void @foo1() nounwind ssp {
9 entry:
10 %tmp = load i8** @foo_private_extern_str, align 8
11 call void @foo3(i8* %tmp)
12 ret void
13 }
14
15 declare void @foo3(i8*)
16
17 ; CHECK-NOT: .private_extern