2014-07-09 12:46:09 +00:00
|
|
|
//@ ignore-lldb
|
|
|
|
|
2014-02-07 03:57:09 +00:00
|
|
|
//@ compile-flags:-g
|
2014-04-24 09:35:48 +00:00
|
|
|
// gdb-command:run
|
2014-01-02 14:38:57 +00:00
|
|
|
|
|
|
|
// Test whether compiling a recursive enum definition crashes debug info generation. The test case
|
|
|
|
// is taken from issue #11083.
|
|
|
|
|
2014-10-27 22:37:07 +00:00
|
|
|
#![allow(unused_variables)]
|
2015-09-19 20:33:47 +00:00
|
|
|
#![feature(omit_gdb_pretty_printer_section)]
|
2014-12-03 22:48:18 +00:00
|
|
|
#![omit_gdb_pretty_printer_section]
|
2014-01-02 14:38:57 +00:00
|
|
|
|
|
|
|
pub struct Window<'a> {
|
|
|
|
callbacks: WindowCallbacks<'a>
|
|
|
|
}
|
|
|
|
|
|
|
|
struct WindowCallbacks<'a> {
|
2015-01-05 13:23:17 +00:00
|
|
|
pos_callback: Option<Box<FnMut(&Window, i32, i32) + 'a>>,
|
2014-01-02 14:38:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let x = WindowCallbacks { pos_callback: None };
|
|
|
|
}
|