blob: 01f1518c1c6ed9f044e11adcb08bcb70fed5e18e [file] [log] [blame]
// Meta test for compiletest: check that when we give the wrong error
// patterns, the test fails.
// run-fail
// revisions: foo bar
// should-fail
//[foo] error-pattern:bar
//[bar] error-pattern:foo
#[cfg(foo)]
fn die() {
panic!("foo");
}
#[cfg(bar)]
fn die() {
panic!("bar");
}
fn main() {
die();
}