~ubuntu-branches/ubuntu/maverick/clamav/maverick-backports

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/test/Feature/aliases.ll

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Gran, Stephen Gran, Michael Tautschnig
  • Date: 2010-04-26 21:41:18 UTC
  • mfrom: (2.1.6 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100426214118-i6lo606wnh7ywfj6
Tags: 0.96+dfsg-4
[ Stephen Gran ]
* Fixed typo in clamav-milter's postinst

[ Michael Tautschnig ]
* Fixed typo in clamav-freshclam's postinst (closes: #579271)
* Debconf translation updates
  - Portuguese (closes: #579068)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llvm-as < %s | llvm-dis > %t1.ll
 
2
; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
 
3
; RUN: diff %t1.ll %t2.ll
 
4
 
 
5
@bar = external global i32
 
6
@foo1 = alias i32* @bar
 
7
@foo2 = alias i32* @bar
 
8
@foo3 = alias i32* @foo2
 
9
 
 
10
%FunTy = type i32()
 
11
 
 
12
declare i32 @foo_f()
 
13
@bar_f = alias weak %FunTy* @foo_f
 
14
@bar_ff = alias i32()* @bar_f
 
15
 
 
16
@bar_i = alias internal i32* @bar
 
17
 
 
18
@A = alias bitcast (i32* @bar to i64*)
 
19
 
 
20
define i32 @test() {
 
21
entry:
 
22
   %tmp = load i32* @foo1
 
23
   %tmp1 = load i32* @foo2
 
24
   %tmp0 = load i32* @bar_i
 
25
   %tmp2 = call i32 @foo_f()
 
26
   %tmp3 = add i32 %tmp, %tmp2
 
27
   %tmp4 = call %FunTy* @bar_f()
 
28
   %tmp5 = add i32 %tmp3, %tmp4
 
29
   %tmp6 = add i32 %tmp1, %tmp5
 
30
   %tmp7 = add i32 %tmp6, %tmp0
 
31
   ret i32 %tmp7
 
32
}