summaryrefslogtreecommitdiffstats
path: root/tests/ui/meta/revision-ok.rs
blob: bbeae41b8bb95bb45344f12817cc766eb5f75dc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Meta test for compiletest: check that when we give the right error
// patterns, the test passes. See all `revision-bad.rs`.

// run-fail
// revisions: foo bar
//[foo] error-pattern:foo
//[bar] error-pattern:bar
// ignore-emscripten no processes

#[cfg(foo)]
fn die() {
    panic!("foo");
}
#[cfg(bar)]
fn die() {
    panic!("bar");
}

fn main() {
    die();
}