2024-10-03 16:53:51 +10:00
|
|
|
#![cfg_attr(feat, feature(coverage_attribute))]
|
|
|
|
//@ revisions: feat nofeat
|
|
|
|
//@ compile-flags: -Cinstrument-coverage
|
2024-10-09 13:51:26 +11:00
|
|
|
//@ needs-profiler-runtime
|
2024-10-03 16:53:51 +10:00
|
|
|
|
|
|
|
// Malformed `#[coverage(..)]` attributes should not cause an ICE when built
|
|
|
|
// with `-Cinstrument-coverage`.
|
|
|
|
// Regression test for <https://github.com/rust-lang/rust/issues/127880>.
|
|
|
|
|
|
|
|
#[coverage]
|
|
|
|
//~^ ERROR malformed `coverage` attribute input
|
|
|
|
//[nofeat]~| the `#[coverage]` attribute is an experimental feature
|
|
|
|
fn main() {}
|
|
|
|
|
|
|
|
// FIXME(#130766): When the `#[coverage(..)]` attribute is stabilized,
|
|
|
|
// get rid of the revisions and just make this a normal test.
|