22 lines · plain
1RUN: mkdir -p %t.d2RUN: cd %t.d3 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.gcno7 8RUN: rm -f instrprof-gcov-exceptions.gcda9RUN: %run %t10RUN: llvm-cov gcov instrprof-gcov-exceptions.gcda11RUN: FileCheck --match-full-lines --strict-whitespace --input-file instrprof-gcov-exceptions.cpp.gcov %S/Inputs/instrprof-gcov-exceptions.cpp.gcov12 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.gcno16 17RUN: rm -f instrprof-gcov-exceptions.gcda18RUN: %run %t19RUN: llvm-cov gcov instrprof-gcov-exceptions.gcda20# 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.gcov22