xref: /llvm-project/compiler-rt/test/fuzzer/exit_on_src_pos.test (revision 75b0a99668cef7abaf36e09c41bb1eb91234bbf3)
1# Temporary use -mllvm -use-unknown-locations=Disable so that
2# all instructions have debug info (file line numbers) attached.
3# TODO: Find out why test fails on Darwin with -O2.
4# Binaries must end in .exe or else symbolization will break on Windows because of how periods
5# in expansion of %t cause the compiler to overwrite .lib and .exp files.
6
7# Test does not complete on Armv7 Thumb build bot
8UNSUPPORTED: target=thumb{{.*}}
9# Timeout on loongarch64 machine
10UNSUPPORTED: target=loongarch64{{.*}}
11
12RUN: %cpp_compiler -O0 %S/SimpleTest.cpp -o %t-SimpleTest.exe -mllvm -use-unknown-locations=Disable
13RUN: %cpp_compiler -O0 %S/ShrinkControlFlowTest.cpp -o %t-ShrinkControlFlowTest.exe
14
15RUN: %run %t-SimpleTest.exe  -exit_on_src_pos=SimpleTest.cpp:19 2>&1 | FileCheck %s --check-prefix=EXIT_ON_SRC_POS
16RUN: %run %t-ShrinkControlFlowTest.exe  -exit_on_src_pos=Foo 2>&1 | FileCheck %s --check-prefix=EXIT_ON_SRC_POS
17EXIT_ON_SRC_POS: INFO: found line matching '{{.*}}', exiting.
18