~ubuntu-branches/ubuntu/quantal/llvm-3.1/quantal

« back to all changes in this revision

Viewing changes to test/Transforms/DeadArgElim/2007-12-20-ParamAttrs.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-03-29 19:09:51 UTC
  • Revision ID: package-import@ubuntu.com-20120329190951-aq83ivog4cg8bxun
Tags: upstream-3.1~svn153643
ImportĀ upstreamĀ versionĀ 3.1~svn153643

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: opt < %s -deadargelim -S > %t
 
2
; RUN: cat %t | grep nounwind | count 2
 
3
; RUN: cat %t | grep signext | count 2
 
4
; RUN: cat %t | not grep inreg
 
5
; RUN: cat %t | not grep zeroext
 
6
; RUN: cat %t | not grep byval
 
7
 
 
8
        %struct = type { }
 
9
 
 
10
@g = global i8 0
 
11
 
 
12
define internal zeroext i8 @foo(i8* inreg %p, i8 signext %y, ... )  nounwind {
 
13
        store i8 %y, i8* @g
 
14
        ret i8 0
 
15
}
 
16
 
 
17
define i32 @bar() {
 
18
        %A = call zeroext i8(i8*, i8, ...)* @foo(i8* inreg null, i8 signext 1, %struct* byval null ) nounwind
 
19
        ret i32 0
 
20
}