summaryrefslogtreecommitdiff
path: root/bindgen-tests/tests/headers/private_fields.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'bindgen-tests/tests/headers/private_fields.hpp')
-rw-r--r--bindgen-tests/tests/headers/private_fields.hpp44
1 files changed, 44 insertions, 0 deletions
diff --git a/bindgen-tests/tests/headers/private_fields.hpp b/bindgen-tests/tests/headers/private_fields.hpp
new file mode 100644
index 00000000..9d55ebca
--- /dev/null
+++ b/bindgen-tests/tests/headers/private_fields.hpp
@@ -0,0 +1,44 @@
+// bindgen-flags: --respect-cxx-access-specs
+class PubPriv {
+ public:
+ int x;
+ private:
+ int y;
+};
+
+class PrivateBitFields {
+ unsigned int a : 4;
+ unsigned int b : 4;
+};
+class PublicBitFields {
+ public:
+ unsigned int a : 4;
+ unsigned int b : 4;
+};
+class MixedBitFields {
+ unsigned int a : 4;
+ public:
+ unsigned int d : 4;
+};
+
+class Base {
+ public:
+ int member;
+};
+
+class InheritsPrivately : Base {};
+class InheritsPublically : public Base {};
+
+class WithAnonStruct {
+ struct {
+ int a;
+ };
+ public:
+ struct {
+ int b;
+ };
+};
+
+class WithAnonUnion {
+ union {};
+}; \ No newline at end of file