diff --git a/llvm/test/Examples/OrcV2Examples/lljit-with-remote-debugging.test b/llvm/test/Examples/OrcV2Examples/lljit-with-remote-debugging.test new file mode 100644 --- /dev/null +++ b/llvm/test/Examples/OrcV2Examples/lljit-with-remote-debugging.test @@ -0,0 +1,12 @@ +# This test makes sure that the example builds and executes as expected. +# Instructions for debugging can be found in LLJITWithRemoteDebugging.cpp + +# RUN: LLJITWithRemoteDebugging %p/Inputs/argc_sub1_elf.ll | FileCheck --check-prefix=CHECK0 %s +# CHECK0: Parsing input IR code from: {{.*}}/Inputs/argc_sub1_elf.ll +# CHECK0: Running: main() +# CHECK0: Exit code: 0 + +# RUN: LLJITWithRemoteDebugging %p/Inputs/argc_sub1_elf.ll --args 2nd 3rd 4th | FileCheck --check-prefix=CHECK3 %s +# CHECK3: Parsing input IR code from: {{.*}}/Inputs/argc_sub1_elf.ll +# CHECK3: Running: main("2nd", "3rd", "4th") +# CHECK3: Exit code: 3