about summary refs log tree commit diff
path: root/tests/coverage/no-core.coverage
blob: 8b890609568797cabad3f6ddb44c8b2a48f6d8bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
   LL|       |#![feature(no_core)]
   LL|       |#![no_core]
   LL|       |//@ edition: 2021
   LL|       |
   LL|       |// Test that coverage instrumentation works for `#![no_core]` crates.
   LL|       |
   LL|       |// For this test, we pull in std anyway, to avoid having to set up our own
   LL|       |// no-core or no-std environment. What's important is that the compiler allows
   LL|       |// coverage for a crate with the `#![no_core]` annotation.
   LL|       |extern crate std;
   LL|       |
   LL|      1|fn main() {}