blob: 17f6398b735547d84b4be98bd0b041d348e787a4 [file] [log] [blame]
// Meta test for compiletest: check that when we give the wrong error
// patterns, the test fails.
// 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();
}