~ubuntu-branches/ubuntu/precise/llvm-2.8/precise

« back to all changes in this revision

Viewing changes to test/Transforms/ConstantMerge/dont-merge.ll

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-09-21 14:03:34 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100921140334-i4xxl0a768fcqffl
Tags: 2.8~20100921-0ubuntu1
New upstream snapshot, taken from the 2.8 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
        store i32 addrspace(30)*  @T2b, i32 addrspace(30)** %P2
29
29
        ret void
30
30
}
 
31
 
 
32
; PR8144 - Don't merge globals marked attribute(used)
 
33
; CHECK: @T3A = 
 
34
; CHECK: @T3B = 
 
35
 
 
36
@T3A = internal constant i32 0
 
37
@T3B = internal constant i32 0
 
38
@llvm.used = appending global [2 x i32*] [i32* @T3A, i32* @T3B], section
 
39
"llvm.metadata"
 
40
 
 
41
define void @test3() {
 
42
  call void asm sideeffect "T3A, T3B",""() ; invisible use of T3A and T3B
 
43
  ret void
 
44
}