diff options
Diffstat (limited to 'test/Transforms/PruneEH')
-rw-r--r-- | test/Transforms/PruneEH/2003-11-21-PHIUpdate.llx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Transforms/PruneEH/2003-11-21-PHIUpdate.llx b/test/Transforms/PruneEH/2003-11-21-PHIUpdate.llx new file mode 100644 index 0000000000..d71259c181 --- /dev/null +++ b/test/Transforms/PruneEH/2003-11-21-PHIUpdate.llx @@ -0,0 +1,15 @@ +; RUN: llvm-as < %s | opt -prune-eh -disable-output + +implementation + +internal void %callee() { ; does not throw + ret void +} + +int %caller() { + invoke void %callee() to label %E except label %E + +E: + %X = phi int [0, %0], [0, %0] + ret int %X +} |