diff --git a/test/Transforms/CodeExtractor/2004-08-12-BlockExtractPHI.ll b/test/Transforms/CodeExtractor/2004-08-12-BlockExtractPHI.ll new file mode 100644 index 00000000000..cf8e5849e5f --- /dev/null +++ b/test/Transforms/CodeExtractor/2004-08-12-BlockExtractPHI.ll @@ -0,0 +1,12 @@ +; RUN: llvm-as < %s | opt -extract-blocks -disable-output + +implementation + +void %l102_yyparse() { +no_exit.0.i: + br bool false, label %yylex.entry, label %yylex.entry + +yylex.entry: + %tmp.1027 = phi int [ 0, %no_exit.0.i ], [ 0, %no_exit.0.i ] + ret void +}