1RUN: mkdir -p %t.d 2RUN: cd %t.d 3 4# Test with exceptions disabled. 5RUN: %clangxx --coverage -o %t %S/Inputs/instrprof-gcov-exceptions.cpp -fno-exceptions -dumpdir ./ 6RUN: test -f instrprof-gcov-exceptions.gcno 7 8RUN: rm -f instrprof-gcov-exceptions.gcda 9RUN: %run %t 10RUN: llvm-cov gcov instrprof-gcov-exceptions.gcda 11RUN: FileCheck --match-full-lines --strict-whitespace --input-file instrprof-gcov-exceptions.cpp.gcov %S/Inputs/instrprof-gcov-exceptions.cpp.gcov 12 13# Test with exceptions enabled, the result in terms of line counts should be the same. 14RUN: %clangxx --coverage -o %t %S/Inputs/instrprof-gcov-exceptions.cpp -dumpdir ./ 15RUN: test -f instrprof-gcov-exceptions.gcno 16 17RUN: rm -f instrprof-gcov-exceptions.gcda 18RUN: %run %t 19RUN: llvm-cov gcov instrprof-gcov-exceptions.gcda 20# FIXME: The result should be the same, but they are not on some platforms. 21RUNX: FileCheck --match-full-lines --strict-whitespace --input-file instrprof-gcov-exceptions.cpp.gcov %S/Inputs/instrprof-gcov-exceptions.cpp.gcov 22