2017-08-22 07:25:50 +08:00
|
|
|
# Temporary use -mllvm -use-unknown-locations=Disable so that
|
|
|
|
# all instructions have debug info (file line numbers) attached.
|
2018-03-28 00:40:34 +08:00
|
|
|
# TODO: Find out why test fails on Darwin with -O2.
|
|
|
|
RUN: %cpp_compiler -O0 %S/SimpleTest.cpp -o %t-SimpleTest -mllvm -use-unknown-locations=Disable
|
|
|
|
RUN: %cpp_compiler -O0 %S/ShrinkControlFlowTest.cpp -o %t-ShrinkControlFlowTest
|
2017-08-22 07:25:50 +08:00
|
|
|
|
2018-05-12 05:29:51 +08:00
|
|
|
RUN: %run %t-SimpleTest -exit_on_src_pos=SimpleTest.cpp:18 2>&1 | FileCheck %s --check-prefix=EXIT_ON_SRC_POS
|
|
|
|
RUN: %run %t-ShrinkControlFlowTest -exit_on_src_pos=Foo 2>&1 | FileCheck %s --check-prefix=EXIT_ON_SRC_POS
|
2017-08-22 07:25:50 +08:00
|
|
|
EXIT_ON_SRC_POS: INFO: found line matching '{{.*}}', exiting.
|