diff --git a/compiler/testData/cfg/DeadCode.instructions b/compiler/testData/cfg/DeadCode.instructions new file mode 100644 index 00000000000..ff25e3f0b72 --- /dev/null +++ b/compiler/testData/cfg/DeadCode.instructions @@ -0,0 +1,20 @@ +== test == +fun test() { + throw Exception() + test() +} +--------------------- +l0: + NEXT:[r(Exception)] PREV:[] + r(Exception) NEXT:[r(Exception())] PREV:[] + r(Exception()) NEXT:[jmp(error)] PREV:[r(Exception)] + jmp(error) NEXT:[] PREV:[r(Exception())] +- r(test) NEXT:[r(test())] PREV:[] +- r(test()) NEXT:[] PREV:[] +l1: + NEXT:[] PREV:[] +error: + NEXT:[] PREV:[jmp(error)] +sink: + NEXT:[] PREV:[, ] +===================== diff --git a/compiler/testData/cfg/DeadCode.jet b/compiler/testData/cfg/DeadCode.jet new file mode 100644 index 00000000000..6182d2dcd18 --- /dev/null +++ b/compiler/testData/cfg/DeadCode.jet @@ -0,0 +1,4 @@ +fun test() { + throw Exception() + test() +} \ No newline at end of file