11f0b194bSMarco CastelluccioRUN: mkdir -p %t.d 21f0b194bSMarco CastelluccioRUN: cd %t.d 31f0b194bSMarco Castelluccio 41f0b194bSMarco Castelluccio# Test with exceptions disabled. 5*0f9f2473SFangrui SongRUN: %clangxx --coverage -o %t %S/Inputs/instrprof-gcov-exceptions.cpp -fno-exceptions -dumpdir ./ 61f0b194bSMarco CastelluccioRUN: test -f instrprof-gcov-exceptions.gcno 71f0b194bSMarco Castelluccio 81f0b194bSMarco CastelluccioRUN: rm -f instrprof-gcov-exceptions.gcda 91f0b194bSMarco CastelluccioRUN: %run %t 101f0b194bSMarco CastelluccioRUN: llvm-cov gcov instrprof-gcov-exceptions.gcda 111f0b194bSMarco CastelluccioRUN: FileCheck --match-full-lines --strict-whitespace --input-file instrprof-gcov-exceptions.cpp.gcov %S/Inputs/instrprof-gcov-exceptions.cpp.gcov 121f0b194bSMarco Castelluccio 131f0b194bSMarco Castelluccio# Test with exceptions enabled, the result in terms of line counts should be the same. 14*0f9f2473SFangrui SongRUN: %clangxx --coverage -o %t %S/Inputs/instrprof-gcov-exceptions.cpp -dumpdir ./ 151f0b194bSMarco CastelluccioRUN: test -f instrprof-gcov-exceptions.gcno 161f0b194bSMarco Castelluccio 171f0b194bSMarco CastelluccioRUN: rm -f instrprof-gcov-exceptions.gcda 181f0b194bSMarco CastelluccioRUN: %run %t 191f0b194bSMarco CastelluccioRUN: llvm-cov gcov instrprof-gcov-exceptions.gcda 2017e25217SReid Kleckner# FIXME: The result should be the same, but they are not on some platforms. 2117e25217SReid KlecknerRUNX: FileCheck --match-full-lines --strict-whitespace --input-file instrprof-gcov-exceptions.cpp.gcov %S/Inputs/instrprof-gcov-exceptions.cpp.gcov 22