LowerSwitch: replace unreachable default with popular case destination
[oota-llvm.git] / test / Transforms / SimplifyCFG / 2003-08-17-FoldSwitch.ll
index 8ba0ae99864d9302a0d59711ecd6c8a02c64394c..806659635e4b5864d1bca94e7ac2080865ef5078 100644 (file)
@@ -1,5 +1,6 @@
-; RUN: opt %s -simplifycfg -S | \
-; RUN:   not grep switch
+; RUN: opt < %s -simplifycfg -S | FileCheck %s
+
+; CHECK-NOT: switch
 
 ; Test normal folding
 define i32 @test1() {