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

« back to all changes in this revision

Viewing changes to test/Transforms/SCCP/switch.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 -sccp < %s | FileCheck %s
 
2
 
 
3
; Make sure we always consider the default edge executable for a switch
 
4
; with no cases.
 
5
declare void @foo()
 
6
define void @test1() {
 
7
; CHECK: define void @test1
 
8
; CHECK: call void @foo()
 
9
  switch i32 undef, label %d []
 
10
d:
 
11
  call void @foo()
 
12
  ret void
 
13
}