diff options
author | chrysn <chrysn@fsfe.org> | 2018-08-25 01:00:55 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-08-28 12:47:44 +0200 |
commit | aa1030ef4d19e527d1372d68f51b608598fe77f4 (patch) | |
tree | cf1b3c253f1bc6014fe83884de6afb36916d22b3 /tests/headers/derive-debug-bitfield-core.hpp | |
parent | b3fca4df2eda2f2bfe8861ab88b05a2573a7b502 (diff) |
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.
Diffstat (limited to 'tests/headers/derive-debug-bitfield-core.hpp')
-rw-r--r-- | tests/headers/derive-debug-bitfield-core.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
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]; +}; |