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