From aa1030ef4d19e527d1372d68f51b608598fe77f4 Mon Sep 17 00:00:00 2001 From: chrysn Date: Sat, 25 Aug 2018 01:00:55 +0200 Subject: Tests: Add a --use-core --impl-debug case This demonstrates the [...] abbreviation of large arrays in contrast to the std variety. (Long (>32) arrays currently don't have a dedicated test, but are piggy-backed on the derive-debug-bitfield and derive-debug-function-pointer tests). Note that the single occurrence of the `std` namespace in the expectation is valid: No --ctypes-prefix was set, and ::std::os::raw is the default value that needs to be overridden in most practical --use-core applications. --- tests/headers/derive-debug-bitfield-core.hpp | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/headers/derive-debug-bitfield-core.hpp (limited to 'tests/headers/derive-debug-bitfield-core.hpp') diff --git a/tests/headers/derive-debug-bitfield-core.hpp b/tests/headers/derive-debug-bitfield-core.hpp new file mode 100644 index 00000000..7a5694ec --- /dev/null +++ b/tests/headers/derive-debug-bitfield-core.hpp @@ -0,0 +1,7 @@ +// bindgen-flags: --impl-debug --use-core + +class C { + bool a: 1; + bool b: 7; + int large_array[50]; +}; -- cgit v1.2.3