tests: attributed comment-only blocks

This commit is contained in:
Caleb Cartwright 2020-11-13 21:42:37 -06:00 committed by Caleb Cartwright
parent faf97a67d6
commit eed826f8a7
4 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,27 @@
fn main() {
#[cfg(debug_assertions)]
{ println!("DEBUG"); }
}
fn main() {
#[cfg(feature = "foo")]
{
/*
let foo = 0
*/
}
}
fn main() {
#[cfg(feature = "foo")]
{ /* let foo = 0; */ }
}
fn main() {
#[foo]
#[bar]
#[baz]
{
// let foo = 0;
}
}

View File

@ -0,0 +1,6 @@
pub fn main() {
#[cfg(feature = "std")]
{
// Comment
}
}

View File

@ -0,0 +1,29 @@
fn main() {
#[cfg(debug_assertions)]
{
println!("DEBUG");
}
}
fn main() {
#[cfg(feature = "foo")]
{
/*
let foo = 0
*/
}
}
fn main() {
#[cfg(feature = "foo")]
{ /* let foo = 0; */ }
}
fn main() {
#[foo]
#[bar]
#[baz]
{
// let foo = 0;
}
}

View File

@ -0,0 +1,6 @@
fn main() {
#[cfg(feature = "foo")]
{
// let foo = 0;
}
}