-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
68f303f
commit 32bf3fe
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
tests-lit/tests/filters/junk-detection/05_precompiled_headers/main.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// clang-format off | ||
|
||
int main() { | ||
return sum(-2, 2); | ||
} | ||
|
||
/* | ||
RUN: cd %CURRENT_DIR | ||
RUN: %clang_cxx -c %S/main.hh -o %T/main.hh.pch | ||
RUN: cd / && env MULL_CONFIG=%S/mull.yml %clang_cxx %sysroot %pass_mull_ir_frontend -include-pch %T/main.hh.pch -g -grecord-command-line %s -o %s.exe | ||
RUN: (unset TERM; %mull_runner --allow-surviving -reporters=IDE -ide-reporter-show-killed %s.exe 2>&1; test $? = 0) | %filecheck %s --dump-input=fail --strict-whitespace --match-full-lines | ||
CHECK:[info] Killed mutants (1/1): | ||
CHECK-NEXT:{{^.*}}/main.hh:2:12: warning: Killed: Replaced + with - [cxx_add_to_sub]{{$}} | ||
CHECK-NEXT: return a + b; | ||
CHECK-NEXT: ^ | ||
CHECK-NEXT:[info] All mutations have been killed | ||
CHECK-NEXT:[info] Mutation score: 100% | ||
*/ |
3 changes: 3 additions & 0 deletions
3
tests-lit/tests/filters/junk-detection/05_precompiled_headers/main.hh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
int sum(int a, int b) { | ||
return a + b; | ||
} |
4 changes: 4 additions & 0 deletions
4
tests-lit/tests/filters/junk-detection/05_precompiled_headers/mull.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
mutators: | ||
- cxx_add_to_sub | ||
|
||
quiet: false |