Introduce a testcase for conditional compilation via attributes
Issue #489
This commit is contained in:
parent
78a82b9fd1
commit
cbcc7bba30
1 changed files with 10 additions and 0 deletions
10
src/test/run-pass/conditional-compile.rs
Normal file
10
src/test/run-pass/conditional-compile.rs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
|
||||
// Since the bogus configuration isn't defined main will just be
|
||||
// parsed, but nothing further will be done with it
|
||||
#[cfg(bogus)]
|
||||
fn main() { fail }
|
||||
|
||||
fn main() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue