2013-02-01 02:24:09 +00:00
|
|
|
// Fail macros without arguments need to be disambiguated in
|
2011-08-19 05:16:54 +00:00
|
|
|
// certain positions
|
2020-05-07 15:39:02 +00:00
|
|
|
|
2020-04-16 06:50:32 +00:00
|
|
|
//@ run-fail
|
2012-11-16 03:50:53 +00:00
|
|
|
//@ error-pattern:oops
|
2020-05-07 15:39:02 +00:00
|
|
|
//@ ignore-emscripten no processes
|
2011-08-19 05:16:54 +00:00
|
|
|
|
2014-10-09 19:17:22 +00:00
|
|
|
fn bigpanic() {
|
2016-05-27 02:39:36 +00:00
|
|
|
while (panic!("oops")) {
|
|
|
|
if (panic!()) {
|
|
|
|
match (panic!()) {
|
|
|
|
() => {}
|
|
|
|
}
|
2012-11-16 03:50:53 +00:00
|
|
|
}
|
2016-05-27 02:39:36 +00:00
|
|
|
}
|
2011-08-19 05:16:54 +00:00
|
|
|
}
|
|
|
|
|
2016-05-27 02:39:36 +00:00
|
|
|
fn main() {
|
|
|
|
bigpanic();
|
|
|
|
}
|