LowerSwitch: replace unreachable default with popular case destination
[oota-llvm.git] / test / Transforms / StripSymbols / 2007-01-15-llvm.used.ll
index 69febc35df765decba05c9a1cf1ef745f9fdf9fe..438fa96b41ef3c1f98885c37082a901ff40cf41e 100644 (file)
@@ -1,5 +1,10 @@
-; RUN: opt < %s -strip -S | grep foo | count 2
-; RUN: opt < %s -strip -S | grep bar | count 2
+; RUN: opt < %s -strip -S | FileCheck %s
+
+; CHECK: foo
+; CHECK: bar
+; CHECK: foo
+; CHECK: bar
+
 @llvm.used = appending global [2 x i8*] [ i8* bitcast (i32* @foo to i8*), i8* bitcast (i32 ()* @bar to i8*) ], section "llvm.metadata"         ; <[2 x i8*]*> [#uses=0]
 @foo = internal constant i32 41                ; <i32*> [#uses=1]