~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/test/Integer/testmemory_bt.ll

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-03-12 11:30:04 UTC
  • mfrom: (0.41.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100312113004-b0fop4bkycszdd0z
Tags: 0.96~rc1+dfsg-0ubuntu1
* New upstream RC - FFE (LP: #537636):
  - Add OfficialDatabaseOnly option to clamav-base.postinst.in
  - Add LocalSocketGroup option to clamav-base.postinst.in
  - Add LocalSocketMode option to clamav-base.postinst.in
  - Add CrossFilesystems option to clamav-base.postinst.in
  - Add ClamukoScannerCount option to clamav-base.postinst.in
  - Add BytecodeSecurity opiton to clamav-base.postinst.in
  - Add DetectionStatsHostID option to clamav-freshclam.postinst.in
  - Add Bytecode option to clamav-freshclam.postinst.in
  - Add MilterSocketGroup option to clamav-milter.postinst.in
  - Add MilterSocketMode option to clamav-milter.postinst.in
  - Add ReportHostname option to clamav-milter.postinst.in
  - Bump libclamav SO version to 6.1.0 in libclamav6.install
  - Drop clamdmon from clamav.examples (no longer shipped by upstream)
  - Drop libclamav.a from libclamav-dev.install (not built by upstream)
  - Update SO version for lintian override for libclamav6
  - Add new Bytecode Testing Tool, usr/bin/clambc, to clamav.install
  - Add build-depends on python and python-setuptools for new test suite
  - Update debian/copyright for the embedded copy of llvm (using the system
    llvm is not currently feasible)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
 
2
; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
 
3
; RUN: diff %t1.ll %t2.ll
 
4
 
 
5
 
 
6
%struct = type { i31 , {float, {i9 } } , i64 }
 
7
%complexty = type {i31, {[4 x i9 *], float}, double}
 
8
 
 
9
 
 
10
define i31 @"main"()
 
11
begin
 
12
  call i31 @testfunction(i64 0, i64 1)
 
13
  ret i31 0
 
14
end
 
15
 
 
16
define i31 @"testfunction"(i64 %i0, i64 %j0)
 
17
begin
 
18
    %array0 = malloc [4 x i9]            ; yields {[4 x i9]*}:array0
 
19
    %size   = add i32 2, 2                 ; yields {i31}:size = i31 %4
 
20
    %array1 = malloc i9, i32 4          ; yields {i9*}:array1
 
21
    %array2 = malloc i9, i32 %size      ; yields {i9*}:array2
 
22
 
 
23
    %idx = getelementptr [4 x i9]* %array0, i64 0, i64 2
 
24
    store i9 123, i9* %idx
 
25
    free [4x i9]* %array0
 
26
    free i9* %array1
 
27
    free i9* %array2
 
28
 
 
29
 
 
30
    %aa = alloca %complexty, i32 5
 
31
    %idx2 = getelementptr %complexty* %aa, i64 %i0, i32 1, i32 0, i64 %j0
 
32
    store i9 *null, i9** %idx2
 
33
    
 
34
    %ptr = alloca i31                       ; yields {i31*}:ptr
 
35
    store i31 3, i31* %ptr                  ; yields {void}
 
36
    %val = load i31* %ptr                   ; yields {i31}:val = i31 %3
 
37
 
 
38
    %sptr = alloca %struct                  ; yields {%struct*}:sptr
 
39
    %ubsptr = getelementptr %struct * %sptr, i64 0, i32 1, i32 1  ; yields {{i9}*}:ubsptr
 
40
    %idx3 = getelementptr {i9} * %ubsptr, i64 0, i32 0
 
41
    store i9 4, i9* %idx3
 
42
 
 
43
    ret i31 3
 
44
end
 
45