From 416674c59ca33c92a6ce516dbdc10e7b2cb45d87 Mon Sep 17 00:00:00 2001 From: Yamakaky Date: Mon, 7 Mar 2016 18:53:48 +0100 Subject: 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 --- tests/headers/struct_with_derive_debug.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/headers/struct_with_derive_debug.h (limited to 'tests/headers/struct_with_derive_debug.h') 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; +}; -- cgit v1.2.3