// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 or the MIT license // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. // LLDB can't handle zero-sized values // ignore-lldb // compile-flags:-g // gdb-command:run // gdb-command:print first // gdb-check:$1 = {} // gdb-command:print second // gdb-check:$2 = {} #![allow(unused_variables)] #![omit_gdb_pretty_printer_section] enum ANilEnum {} enum AnotherNilEnum {} // This test relies on gdb printing the string "{}" for empty // structs (which may change some time) fn main() { unsafe { let first: ANilEnum = ::std::mem::zeroed(); let second: AnotherNilEnum = ::std::mem::zeroed(); zzz(); // #break } } fn zzz() {()}