-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
13 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ typedef struct { | |
} c; | ||
} b; | ||
} a; | ||
} S2; | ||
} StructWithUnion; | ||
|
||
S2 kS2; | ||
StructWithUnion kStructWithUnion; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
//! xfail | ||
|
||
mod debug_derive_bad; | ||
use debug_derive_bad::rust_kS2; | ||
use debug_derive_bad::rust_kStructWithUnion; | ||
|
||
pub fn test_union() { | ||
unsafe { | ||
format!("{rust_kS2:?}"); | ||
format!("{rust_kStructWithUnion:?}"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
//! feature_c_variadic, | ||
//! feature_c_variadic | ||
|
||
use crate::debug_derive_good::{rust_kS1, rust_get_struct_containing_va_list}; | ||
use crate::debug_derive_good::{rust_kS1, rust_kS2}; | ||
use std::fmt::Debug; | ||
|
||
pub fn test_simple_struct() { | ||
pub fn test_debuggable() { | ||
unsafe { | ||
format!("{rust_kS1:?}"); | ||
// Make sure each struct implements `Debug` | ||
let _debuggable: Vec<*mut dyn Debug> = vec![rust_kS1, rust_kS2]; | ||
} | ||
} | ||
|
||
pub fn test_struct_containing_va_list() { | ||
unsafe { | ||
let s = rust_get_struct_containing_va_list(); | ||
format!("{s:?}"); | ||
} | ||
} |