brintos

brintos / llvm-project-archived public Read only

0
0
Text · 931 B · 4b8b3be Raw
23 lines · plain
1# Check instrumentation of C++ code with exceptions2 3REQUIRES: system-linux,bolt-runtime4 5RUN: %clangxx %cxxflags -no-pie %p/Inputs/exceptions_split.cpp -Wl,-q -g -o %t_exc_split6RUN: llvm-bolt %t_exc_split -o %t.exc --instrument --instrumentation-file=%t.fdata7 8RUN: %t.exc arg1 arg2 arg39 10RUN: llvm-bolt %t_exc_split -o %t.exc.bolted --data %t.fdata \11RUN:   --reorder-blocks=ext-tsp --reorder-functions=hfsort+ \12RUN:   --split-functions --split-eh=1 2>&1 \13RUN:   | FileCheck --check-prefix=EXCEPTIONS %s14EXCEPTIONS-NOT: invalid (possibly stale) profile15 16# Check that cold symbols are emitted with local binding.17RUN: llvm-readelf -Ws %t.exc.bolted | FileCheck %s --check-prefix=CHECK-READELF18CHECK-READELF: FUNC    LOCAL  DEFAULT   {{.*}} main.cold.{{.*}}19 20RUN: cat %t.fdata | FileCheck --check-prefix=EXCEPTIONS-FDATA %s21# Check that the printf "catch" ran exactly 10 times22EXCEPTIONS-FDATA: 1 main {{.*}} 1 _Znwm@PLT 0 0 1023