diff --git a/llvm/test/Regression/Transforms/CodeExtractor/2004-08-12-BlockExtractPHI.ll b/llvm/test/Regression/Transforms/CodeExtractor/2004-08-12-BlockExtractPHI.ll index cf8e5849e5f0..4f695844ee6a 100644 --- a/llvm/test/Regression/Transforms/CodeExtractor/2004-08-12-BlockExtractPHI.ll +++ b/llvm/test/Regression/Transforms/CodeExtractor/2004-08-12-BlockExtractPHI.ll @@ -2,7 +2,7 @@ implementation -void %l102_yyparse() { +void %test1() { no_exit.0.i: br bool false, label %yylex.entry, label %yylex.entry @@ -10,3 +10,18 @@ yylex.entry: %tmp.1027 = phi int [ 0, %no_exit.0.i ], [ 0, %no_exit.0.i ] ret void } + +void %test2() { +no_exit.0.i: + switch uint 0, label %yylex.entry [ + uint 0, label %yylex.entry + uint 1, label %foo + ] + +yylex.entry: + %tmp.1027 = phi int [ 0, %no_exit.0.i ], [ 0, %no_exit.0.i ] + ret void +foo: + ret void +} +