diff options
author | Yamakaky <yamakaky@yamaworld.fr> | 2016-03-07 18:53:48 +0100 |
---|---|---|
committer | Yamakaky <yamakaky@yamaworld.fr> | 2016-03-10 14:01:43 +0100 |
commit | 416674c59ca33c92a6ce516dbdc10e7b2cb45d87 (patch) | |
tree | a2f926647671dfec61c12ab39c591bd90203366c /tests/headers/struct_with_derive_debug.h | |
parent | fa6f4407f3cd366c2390b390a6400db8a5c5a071 (diff) |
Add #[derive(Debug)] to all structs and enums.
Don't derive debug on a struct if one of it's members isn't Debug.
Add a new test for this case.
Fixes #261
Diffstat (limited to 'tests/headers/struct_with_derive_debug.h')
-rw-r--r-- | tests/headers/struct_with_derive_debug.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/headers/struct_with_derive_debug.h b/tests/headers/struct_with_derive_debug.h new file mode 100644 index 00000000..98ba1b3d --- /dev/null +++ b/tests/headers/struct_with_derive_debug.h @@ -0,0 +1,15 @@ +struct LittleArray { + int a[32]; +}; + +struct BigArray{ + int a[33]; +}; + +struct WithLittleArray { + struct LittleArray a; +}; + +struct WithBigArray { + struct BigArray a; +}; |