blob: 914df25360fd934a75602ec11a2ad1a4faf09164 [file] [log] [blame]
Chris Lattner35afed22003-05-01 21:27:24 +00001; RUN: as < %s | opt -lowerswitch
2
3void %child(int %ct.1) {
4entry: ; No predecessors!
5 switch uint 0, label %return [
Chris Lattner35afed22003-05-01 21:27:24 +00006 uint 3, label %UnifiedExitNode
7 uint 0, label %return
Chris Lattner35afed22003-05-01 21:27:24 +00008 ]
9
10return: ; preds = %entry, %entry
Chris Lattnerd4e24c62003-05-01 21:38:57 +000011 %result.0 = phi int* [ null, %entry ], [ null, %entry ] ; <%struct.quad_struct*> [#uses=0]
Chris Lattner35afed22003-05-01 21:27:24 +000012 br label %UnifiedExitNode
13
14UnifiedExitNode: ; preds = %entry, %return, %entry, %entry
15 ret void
16}
17