summaryrefslogtreecommitdiffstats
path: root/tests/coverage/test_harness.coverage
diff options
context:
space:
mode:
Diffstat (limited to 'tests/coverage/test_harness.coverage')
-rw-r--r--tests/coverage/test_harness.coverage11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/coverage/test_harness.coverage b/tests/coverage/test_harness.coverage
new file mode 100644
index 000000000..ff6009f6f
--- /dev/null
+++ b/tests/coverage/test_harness.coverage
@@ -0,0 +1,11 @@
+ LL| |// Verify that the entry point injected by the test harness doesn't cause
+ LL| |// weird artifacts in the coverage report (e.g. issue #10749).
+ LL| |
+ LL| |// compile-flags: --test
+ LL| |
+ LL| |#[allow(dead_code)]
+ LL| 0|fn unused() {}
+ LL| |
+ LL| 1|#[test]
+ LL| 1|fn my_test() {}
+