summaryrefslogtreecommitdiff
path: root/libbindgen/tests/headers
diff options
context:
space:
mode:
Diffstat (limited to 'libbindgen/tests/headers')
-rw-r--r--libbindgen/tests/headers/accessors.hpp46
-rw-r--r--libbindgen/tests/headers/annotation_hide.hpp16
-rw-r--r--libbindgen/tests/headers/anon_enum.hpp10
-rw-r--r--libbindgen/tests/headers/anon_enum_trait.hpp22
-rw-r--r--libbindgen/tests/headers/anon_enum_whitelist.h6
-rw-r--r--libbindgen/tests/headers/anon_union.hpp20
-rw-r--r--libbindgen/tests/headers/arg_keyword.hpp1
-rw-r--r--libbindgen/tests/headers/auto.hpp19
-rw-r--r--libbindgen/tests/headers/bad-namespace-parenthood-inheritance.hpp15
-rw-r--r--libbindgen/tests/headers/base-to-derived.hpp19
-rw-r--r--libbindgen/tests/headers/bitfield-enum-basic.hpp27
-rw-r--r--libbindgen/tests/headers/bitfield_method_mangling.h5
-rw-r--r--libbindgen/tests/headers/blocks.h3
-rw-r--r--libbindgen/tests/headers/canonical_path_without_namespacing.hpp7
-rw-r--r--libbindgen/tests/headers/class.hpp29
-rw-r--r--libbindgen/tests/headers/class_nested.hpp24
-rw-r--r--libbindgen/tests/headers/class_no_members.hpp16
-rw-r--r--libbindgen/tests/headers/class_static.hpp7
-rw-r--r--libbindgen/tests/headers/class_static_const.hpp8
-rw-r--r--libbindgen/tests/headers/class_use_as.hpp15
-rw-r--r--libbindgen/tests/headers/class_with_dtor.hpp13
-rw-r--r--libbindgen/tests/headers/class_with_inner_struct.hpp43
-rw-r--r--libbindgen/tests/headers/class_with_typedef.hpp22
-rw-r--r--libbindgen/tests/headers/complex.h16
-rw-r--r--libbindgen/tests/headers/complex_global.h3
-rw-r--r--libbindgen/tests/headers/const_bool.hpp9
-rw-r--r--libbindgen/tests/headers/const_enum_unnamed.hpp9
-rw-r--r--libbindgen/tests/headers/const_ptr.hpp3
-rw-r--r--libbindgen/tests/headers/const_resolved_ty.h3
-rw-r--r--libbindgen/tests/headers/const_tparam.hpp5
-rw-r--r--libbindgen/tests/headers/constant-evaluate.h19
-rw-r--r--libbindgen/tests/headers/constify-enum.h13
-rw-r--r--libbindgen/tests/headers/constructor-tp.hpp26
-rw-r--r--libbindgen/tests/headers/constructors.hpp13
-rw-r--r--libbindgen/tests/headers/convert-floats.h9
-rw-r--r--libbindgen/tests/headers/crtp.hpp12
-rw-r--r--libbindgen/tests/headers/dash_language.h6
-rw-r--r--libbindgen/tests/headers/decl_extern_int_twice.h2
-rw-r--r--libbindgen/tests/headers/decl_ptr_to_array.h1
-rw-r--r--libbindgen/tests/headers/disable-namespacing.hpp9
-rw-r--r--libbindgen/tests/headers/duplicated-namespaces-definitions.hpp18
-rw-r--r--libbindgen/tests/headers/duplicated-namespaces.hpp4
-rw-r--r--libbindgen/tests/headers/duplicated_constants_in_ns.hpp7
-rw-r--r--libbindgen/tests/headers/elaborated.hpp5
-rw-r--r--libbindgen/tests/headers/empty_template_param_name.hpp6
-rw-r--r--libbindgen/tests/headers/enum.h9
-rw-r--r--libbindgen/tests/headers/enum_alias.hpp7
-rw-r--r--libbindgen/tests/headers/enum_and_vtable_mangling.hpp11
-rw-r--r--libbindgen/tests/headers/enum_dupe.h4
-rw-r--r--libbindgen/tests/headers/enum_explicit_type.hpp28
-rw-r--r--libbindgen/tests/headers/enum_in_template_with_typedef.hpp16
-rw-r--r--libbindgen/tests/headers/enum_negative.h4
-rw-r--r--libbindgen/tests/headers/enum_packed.h14
-rw-r--r--libbindgen/tests/headers/eval-variadic-template-parameter.hpp8
-rw-r--r--libbindgen/tests/headers/extern.hpp3
-rw-r--r--libbindgen/tests/headers/float128.hpp13
-rw-r--r--libbindgen/tests/headers/forward-inherit-struct-with-fields.hpp8
-rw-r--r--libbindgen/tests/headers/forward-inherit-struct.hpp5
-rw-r--r--libbindgen/tests/headers/forward_declared_struct.h11
-rw-r--r--libbindgen/tests/headers/func_proto.h1
-rw-r--r--libbindgen/tests/headers/func_ptr.h1
-rw-r--r--libbindgen/tests/headers/func_ptr_in_struct.h6
-rw-r--r--libbindgen/tests/headers/func_with_array_arg.h1
-rw-r--r--libbindgen/tests/headers/func_with_func_ptr_arg.h1
-rw-r--r--libbindgen/tests/headers/in_class_typedef.hpp10
-rw-r--r--libbindgen/tests/headers/inherit-namespaced.hpp4
-rw-r--r--libbindgen/tests/headers/inherit_named.hpp5
-rw-r--r--libbindgen/tests/headers/inherit_typedef.hpp5
-rw-r--r--libbindgen/tests/headers/inline-function.h6
-rw-r--r--libbindgen/tests/headers/inline_namespace.hpp11
-rw-r--r--libbindgen/tests/headers/inline_namespace_conservative.hpp12
-rw-r--r--libbindgen/tests/headers/inline_namespace_whitelist.hpp7
-rw-r--r--libbindgen/tests/headers/inner_const.hpp6
-rw-r--r--libbindgen/tests/headers/inner_template_self.hpp10
-rw-r--r--libbindgen/tests/headers/int128_t.h7
-rw-r--r--libbindgen/tests/headers/issue-358.hpp8
-rw-r--r--libbindgen/tests/headers/issue-372.hpp16
-rw-r--r--libbindgen/tests/headers/issue_311.hpp5
-rw-r--r--libbindgen/tests/headers/issue_315.hpp2
-rw-r--r--libbindgen/tests/headers/jsval_layout_opaque.hpp424
-rw-r--r--libbindgen/tests/headers/keywords.h49
-rw-r--r--libbindgen/tests/headers/macro-expr-basic.h14
-rw-r--r--libbindgen/tests/headers/macro-redef.h5
-rw-r--r--libbindgen/tests/headers/macro_const.h7
-rw-r--r--libbindgen/tests/headers/maddness-is-avoidable.hpp9
-rw-r--r--libbindgen/tests/headers/method-mangling.hpp5
-rw-r--r--libbindgen/tests/headers/module-whitelisted.hpp2
-rw-r--r--libbindgen/tests/headers/msvc-no-usr.hpp8
-rw-r--r--libbindgen/tests/headers/multiple-inherit-empty-correct-layout.hpp3
-rw-r--r--libbindgen/tests/headers/mutable.hpp14
-rw-r--r--libbindgen/tests/headers/namespace.hpp47
-rw-r--r--libbindgen/tests/headers/nested.hpp15
-rw-r--r--libbindgen/tests/headers/nested_vtable.hpp8
-rw-r--r--libbindgen/tests/headers/nested_within_namespace.hpp15
-rw-r--r--libbindgen/tests/headers/no-std.h5
-rw-r--r--libbindgen/tests/headers/no_copy.hpp6
-rw-r--r--libbindgen/tests/headers/nsStyleAutoArray.hpp57
-rw-r--r--libbindgen/tests/headers/only_bitfields.hpp5
-rw-r--r--libbindgen/tests/headers/opaque-tracing.hpp21
-rw-r--r--libbindgen/tests/headers/opaque_in_struct.hpp10
-rw-r--r--libbindgen/tests/headers/opaque_pointer.hpp22
-rw-r--r--libbindgen/tests/headers/opaque_typedef.hpp17
-rw-r--r--libbindgen/tests/headers/overflowed_enum.hpp12
-rw-r--r--libbindgen/tests/headers/overloading.hpp9
-rw-r--r--libbindgen/tests/headers/private.hpp21
-rw-r--r--libbindgen/tests/headers/public-dtor.hpp15
-rw-r--r--libbindgen/tests/headers/redeclaration.hpp7
-rw-r--r--libbindgen/tests/headers/ref_argument_array.hpp6
-rw-r--r--libbindgen/tests/headers/reparented_replacement.hpp16
-rw-r--r--libbindgen/tests/headers/replace_template_alias.hpp23
-rw-r--r--libbindgen/tests/headers/replace_use.hpp15
-rw-r--r--libbindgen/tests/headers/replaces_double.hpp20
-rw-r--r--libbindgen/tests/headers/resolved_type_def_function.h2
-rw-r--r--libbindgen/tests/headers/same_struct_name_in_different_namespaces.hpp12
-rw-r--r--libbindgen/tests/headers/size_t_template.hpp8
-rw-r--r--libbindgen/tests/headers/struct_containing_forward_declared_struct.h7
-rw-r--r--libbindgen/tests/headers/struct_with_anon_struct.h6
-rw-r--r--libbindgen/tests/headers/struct_with_anon_struct_array.h10
-rw-r--r--libbindgen/tests/headers/struct_with_anon_struct_pointer.h6
-rw-r--r--libbindgen/tests/headers/struct_with_anon_union.h6
-rw-r--r--libbindgen/tests/headers/struct_with_anon_unnamed_struct.h6
-rw-r--r--libbindgen/tests/headers/struct_with_anon_unnamed_union.h6
-rw-r--r--libbindgen/tests/headers/struct_with_bitfields.h13
-rw-r--r--libbindgen/tests/headers/struct_with_derive_debug.h15
-rw-r--r--libbindgen/tests/headers/struct_with_nesting.h17
-rw-r--r--libbindgen/tests/headers/struct_with_packing.h4
-rw-r--r--libbindgen/tests/headers/struct_with_struct.h6
-rw-r--r--libbindgen/tests/headers/struct_with_typedef_template_arg.hpp4
-rw-r--r--libbindgen/tests/headers/template.hpp144
-rw-r--r--libbindgen/tests/headers/template_alias.hpp13
-rw-r--r--libbindgen/tests/headers/template_alias_basic.hpp4
-rw-r--r--libbindgen/tests/headers/template_alias_namespace.hpp13
-rw-r--r--libbindgen/tests/headers/template_typedef_transitive_param.hpp7
-rw-r--r--libbindgen/tests/headers/template_typedefs.hpp8
-rw-r--r--libbindgen/tests/headers/templateref_opaque.hpp11
-rw-r--r--libbindgen/tests/headers/type-referenced-by-whitelisted-function.h7
-rw-r--r--libbindgen/tests/headers/type_alias_empty.hpp10
-rw-r--r--libbindgen/tests/headers/type_alias_partial_template_especialization.hpp7
-rw-r--r--libbindgen/tests/headers/type_alias_template_specialized.hpp9
-rw-r--r--libbindgen/tests/headers/typedefd-array-as-function-arg.h3
-rw-r--r--libbindgen/tests/headers/typeref.hpp28
-rw-r--r--libbindgen/tests/headers/union-in-ns.hpp5
-rw-r--r--libbindgen/tests/headers/union_dtor.hpp5
-rw-r--r--libbindgen/tests/headers/union_fields.hpp5
-rw-r--r--libbindgen/tests/headers/union_template.hpp19
-rw-r--r--libbindgen/tests/headers/union_with_anon_struct.h6
-rw-r--r--libbindgen/tests/headers/union_with_anon_struct_bitfield.h8
-rw-r--r--libbindgen/tests/headers/union_with_anon_union.h6
-rw-r--r--libbindgen/tests/headers/union_with_anon_unnamed_struct.h9
-rw-r--r--libbindgen/tests/headers/union_with_anon_unnamed_union.h7
-rw-r--r--libbindgen/tests/headers/union_with_big_member.h14
-rw-r--r--libbindgen/tests/headers/union_with_nesting.h14
-rw-r--r--libbindgen/tests/headers/unknown_attr.h6
-rw-r--r--libbindgen/tests/headers/use-core.h8
-rw-r--r--libbindgen/tests/headers/using.hpp11
-rw-r--r--libbindgen/tests/headers/var-tracing.hpp10
-rw-r--r--libbindgen/tests/headers/variadic-method.hpp6
-rw-r--r--libbindgen/tests/headers/variadic_template_function.hpp6
-rw-r--r--libbindgen/tests/headers/vector.hpp3
-rw-r--r--libbindgen/tests/headers/virtual_dtor.hpp3
-rw-r--r--libbindgen/tests/headers/virtual_inheritance.hpp16
-rw-r--r--libbindgen/tests/headers/virtual_overloaded.hpp5
-rw-r--r--libbindgen/tests/headers/vtable_recursive_sig.hpp11
-rw-r--r--libbindgen/tests/headers/weird_bitfields.hpp35
-rw-r--r--libbindgen/tests/headers/what_is_going_on.hpp19
-rw-r--r--libbindgen/tests/headers/whitelist-namespaces-basic.hpp10
-rw-r--r--libbindgen/tests/headers/whitelist-namespaces.hpp10
-rw-r--r--libbindgen/tests/headers/whitelist_basic.hpp16
-rw-r--r--libbindgen/tests/headers/whitelist_fix.hpp4
-rw-r--r--libbindgen/tests/headers/whitelist_vars.h4
170 files changed, 0 insertions, 2441 deletions
diff --git a/libbindgen/tests/headers/accessors.hpp b/libbindgen/tests/headers/accessors.hpp
deleted file mode 100644
index 4c23e35d..00000000
--- a/libbindgen/tests/headers/accessors.hpp
+++ /dev/null
@@ -1,46 +0,0 @@
-struct SomeAccessors {
- int mNoAccessor;
- /** <div rustbindgen accessor></div> */
- int mBothAccessors;
- /** <div rustbindgen accessor="unsafe"></div> */
- int mUnsafeAccessors;
- /** <div rustbindgen accessor="immutable"></div> */
- int mImmutableAccessor;
-};
-
-/** <div rustbindgen accessor></div> */
-struct AllAccessors {
- int mBothAccessors;
- int mAlsoBothAccessors;
-};
-
-/** <div rustbindgen accessor="unsafe"></div> */
-struct AllUnsafeAccessors {
- int mBothAccessors;
- int mAlsoBothAccessors;
-};
-
-/** <div rustbindgen accessor></div> */
-struct ContradictAccessors {
- int mBothAccessors;
- /** <div rustbindgen accessor="false"></div> */
- int mNoAccessors;
- /** <div rustbindgen accessor="unsafe"></div> */
- int mUnsafeAccessors;
- /** <div rustbindgen accessor="immutable"></div> */
- int mImmutableAccessor;
-};
-
-/** <div rustbindgen accessor replaces="Replaced"></div> */
-struct Replacing {
- int mAccessor;
-};
-
-struct Replaced {
- int noOp;
-};
-
-/** <div rustbindgen accessor></div> */
-struct Wrapper {
- Replaced mReplaced;
-};
diff --git a/libbindgen/tests/headers/annotation_hide.hpp b/libbindgen/tests/headers/annotation_hide.hpp
deleted file mode 100644
index 3c82c9a2..00000000
--- a/libbindgen/tests/headers/annotation_hide.hpp
+++ /dev/null
@@ -1,16 +0,0 @@
-
-/**
- * <div rustbindgen="true" hide="true"></div>
- */
-struct C;
-
-/**
- * <div rustbindgen opaque></div>
- */
-struct D {
- int a;
-};
-
-struct NotAnnotated {
- int f;
-};
diff --git a/libbindgen/tests/headers/anon_enum.hpp b/libbindgen/tests/headers/anon_enum.hpp
deleted file mode 100644
index 1961fe6c..00000000
--- a/libbindgen/tests/headers/anon_enum.hpp
+++ /dev/null
@@ -1,10 +0,0 @@
-struct Test {
- int foo;
- float bar;
- enum { T_NONE };
-};
-
-typedef enum {
- Foo,
- Bar,
-} Baz;
diff --git a/libbindgen/tests/headers/anon_enum_trait.hpp b/libbindgen/tests/headers/anon_enum_trait.hpp
deleted file mode 100644
index e1ec394c..00000000
--- a/libbindgen/tests/headers/anon_enum_trait.hpp
+++ /dev/null
@@ -1,22 +0,0 @@
-
-template<typename _Tp>
-class DataType {
-public:
- typedef _Tp value_type;
- typedef value_type work_type;
- typedef value_type channel_type;
- typedef value_type vec_type;
- enum { generic_type = 1,
- depth = -1,
- channels = 1,
- fmt = 0,
- type = -1,
- };
-};
-
-struct Foo {
- enum {
- Bar = 0,
- Baz = 0,
- };
-};
diff --git a/libbindgen/tests/headers/anon_enum_whitelist.h b/libbindgen/tests/headers/anon_enum_whitelist.h
deleted file mode 100644
index 15cda6b1..00000000
--- a/libbindgen/tests/headers/anon_enum_whitelist.h
+++ /dev/null
@@ -1,6 +0,0 @@
-// bindgen-flags: --whitelist-var NODE_.*
-
-enum {
- NODE_FLAG_FOO,
- NODE_FLAG_BAR,
-};
diff --git a/libbindgen/tests/headers/anon_union.hpp b/libbindgen/tests/headers/anon_union.hpp
deleted file mode 100644
index 126f6a6e..00000000
--- a/libbindgen/tests/headers/anon_union.hpp
+++ /dev/null
@@ -1,20 +0,0 @@
-template<typename T>
-struct TErrorResult {
- enum UnionState {
- HasMessage,
- HasException,
- };
- int mResult;
- struct Message;
- struct DOMExceptionInfo;
- union {
- Message* mMessage;
- DOMExceptionInfo* mDOMExceptionInfo;
- };
-
- bool mMightHaveUnreported;
- UnionState mUnionState;
-};
-
-struct ErrorResult : public TErrorResult<int> {
-};
diff --git a/libbindgen/tests/headers/arg_keyword.hpp b/libbindgen/tests/headers/arg_keyword.hpp
deleted file mode 100644
index 9f0af850..00000000
--- a/libbindgen/tests/headers/arg_keyword.hpp
+++ /dev/null
@@ -1 +0,0 @@
-void foo(const char* type);
diff --git a/libbindgen/tests/headers/auto.hpp b/libbindgen/tests/headers/auto.hpp
deleted file mode 100644
index b5f6d5f3..00000000
--- a/libbindgen/tests/headers/auto.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// bindgen-flags: -- -std=c++14
-// bindgen-unstable
-
-class Foo {
- static constexpr auto kFoo = 2 == 2;
-};
-
-template<typename T>
-class Bar {
- static const constexpr auto kBar = T(1);
-};
-
-template<typename T> auto Test1() {
- return T(1);
-}
-
-auto Test2() {
- return Test1<unsigned int>();
-}
diff --git a/libbindgen/tests/headers/bad-namespace-parenthood-inheritance.hpp b/libbindgen/tests/headers/bad-namespace-parenthood-inheritance.hpp
deleted file mode 100644
index ce21a401..00000000
--- a/libbindgen/tests/headers/bad-namespace-parenthood-inheritance.hpp
+++ /dev/null
@@ -1,15 +0,0 @@
-namespace std
-{
- template < typename > struct char_traits;
-}
-namespace __gnu_cxx
-{
- template < typename > struct char_traits;
-}
-namespace std
-{
- template < class _CharT > struct char_traits:__gnu_cxx::char_traits <
- _CharT >
- {
- };
-}
diff --git a/libbindgen/tests/headers/base-to-derived.hpp b/libbindgen/tests/headers/base-to-derived.hpp
deleted file mode 100644
index ea31e0f2..00000000
--- a/libbindgen/tests/headers/base-to-derived.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// bindgen-flags: -- -std=c++11
-
-struct false_type {};
-
-template<typename _From, typename _To, bool>
-struct __is_base_to_derived_ref;
-
-template<typename _From, typename _To>
-struct __is_base_to_derived_ref<_From, _To, true>
-{
- typedef _To type;
-
- static constexpr bool value = type::value;
-};
-
-template<typename _From, typename _To>
-struct __is_base_to_derived_ref<_From, _To, false>
-: public false_type
-{ };
diff --git a/libbindgen/tests/headers/bitfield-enum-basic.hpp b/libbindgen/tests/headers/bitfield-enum-basic.hpp
deleted file mode 100644
index 364bebf2..00000000
--- a/libbindgen/tests/headers/bitfield-enum-basic.hpp
+++ /dev/null
@@ -1,27 +0,0 @@
-// bindgen-flags: --bitfield-enum "Foo|Buz|NS_.*|DUMMY_.*" -- -std=c++11
-
-enum Foo {
- Bar = 1 << 1,
- Baz = 1 << 2,
- Duplicated = 1 << 2,
- Negative = -3,
-};
-
-enum class Buz : signed char {
- Bar = 1 << 1,
- Baz = 1 << 2,
- Duplicated = 1 << 2,
- Negative = -3,
-};
-
-enum {
- NS_FOO = 1 << 0,
- NS_BAR = 1 << 1,
-};
-
-class Dummy {
- enum {
- DUMMY_FOO = 1 << 0,
- DUMMY_BAR = 1 << 1,
- };
-};
diff --git a/libbindgen/tests/headers/bitfield_method_mangling.h b/libbindgen/tests/headers/bitfield_method_mangling.h
deleted file mode 100644
index 257648ee..00000000
--- a/libbindgen/tests/headers/bitfield_method_mangling.h
+++ /dev/null
@@ -1,5 +0,0 @@
-typedef struct
-{
- unsigned int pad3: 24;
- unsigned int type: 8;
-} mach_msg_type_descriptor_t;
diff --git a/libbindgen/tests/headers/blocks.h b/libbindgen/tests/headers/blocks.h
deleted file mode 100644
index 80420e6e..00000000
--- a/libbindgen/tests/headers/blocks.h
+++ /dev/null
@@ -1,3 +0,0 @@
-// bindgen-flags: -- -fblocks
-
-void atexit_b(void (^)(void));
diff --git a/libbindgen/tests/headers/canonical_path_without_namespacing.hpp b/libbindgen/tests/headers/canonical_path_without_namespacing.hpp
deleted file mode 100644
index 92e85842..00000000
--- a/libbindgen/tests/headers/canonical_path_without_namespacing.hpp
+++ /dev/null
@@ -1,7 +0,0 @@
-// bindgen-flags: --disable-name-namespacing
-
-namespace foo {
- struct Bar {};
-}
-
-void baz(foo::Bar*);
diff --git a/libbindgen/tests/headers/class.hpp b/libbindgen/tests/headers/class.hpp
deleted file mode 100644
index e753f186..00000000
--- a/libbindgen/tests/headers/class.hpp
+++ /dev/null
@@ -1,29 +0,0 @@
-class C {
- int a;
- // More than rust limits (32)
- char big_array[33];
-};
-
-class WithDtor {
- int b;
-
- ~WithDtor() {}
-};
-
-union Union {
- float d;
- int i;
-};
-
-class WithUnion {
- Union data;
-};
-
-class RealAbstractionWithTonsOfMethods {
- void foo();
-public:
- void bar() const;
- void bar();
- void bar(int foo);
- static void sta();
-};
diff --git a/libbindgen/tests/headers/class_nested.hpp b/libbindgen/tests/headers/class_nested.hpp
deleted file mode 100644
index ab38d500..00000000
--- a/libbindgen/tests/headers/class_nested.hpp
+++ /dev/null
@@ -1,24 +0,0 @@
-class A {
-public:
- int member_a;
- class B {
- int member_b;
- };
-};
-
-A::B var;
-
-class D {
- A::B member;
-};
-
-template<typename T>
-class Templated {
- T member;
-
- class Templated_inner {
- public:
- T* member_ptr;
- void get() {}
- };
-};
diff --git a/libbindgen/tests/headers/class_no_members.hpp b/libbindgen/tests/headers/class_no_members.hpp
deleted file mode 100644
index a4483558..00000000
--- a/libbindgen/tests/headers/class_no_members.hpp
+++ /dev/null
@@ -1,16 +0,0 @@
-// bindgen-flags: -- -std=c++11
-
-class whatever {
-};
-
-class whatever_child: public whatever {
-};
-
-class whatever_child_with_member: public whatever {
-public:
- int m_member;
-};
-
-static_assert(sizeof(whatever) == 1, "Testing!");
-static_assert(sizeof(whatever_child) == 1, "Testing!");
-static_assert(sizeof(whatever_child_with_member) == 4, "Testing!");
diff --git a/libbindgen/tests/headers/class_static.hpp b/libbindgen/tests/headers/class_static.hpp
deleted file mode 100644
index 21ab2321..00000000
--- a/libbindgen/tests/headers/class_static.hpp
+++ /dev/null
@@ -1,7 +0,0 @@
-class MyClass {
-public:
- static const int* example;
- static const int* example_check_no_collision;
-};
-
-static const int* example_check_no_collision;
diff --git a/libbindgen/tests/headers/class_static_const.hpp b/libbindgen/tests/headers/class_static_const.hpp
deleted file mode 100644
index 150afe8b..00000000
--- a/libbindgen/tests/headers/class_static_const.hpp
+++ /dev/null
@@ -1,8 +0,0 @@
-using int32_t = int;
-typedef unsigned int uint32_t;
-
-class A {
- static const int a = 0;
- static const int32_t b = 077;
- static const uint32_t c = 0xff;
-};
diff --git a/libbindgen/tests/headers/class_use_as.hpp b/libbindgen/tests/headers/class_use_as.hpp
deleted file mode 100644
index a4e36ded..00000000
--- a/libbindgen/tests/headers/class_use_as.hpp
+++ /dev/null
@@ -1,15 +0,0 @@
-
-/**
- * <div rustbindgen="true" replaces="whatever"></div>
- */
-struct whatever_replacement {
- int replacement;
-};
-
-struct whatever {
- int b;
-};
-
-struct container {
- whatever c;
-};
diff --git a/libbindgen/tests/headers/class_with_dtor.hpp b/libbindgen/tests/headers/class_with_dtor.hpp
deleted file mode 100644
index b9bf74e1..00000000
--- a/libbindgen/tests/headers/class_with_dtor.hpp
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-template <typename T>
-class HandleWithDtor {
- T* ptr;
- ~HandleWithDtor() {}
-};
-
-typedef HandleWithDtor<int> HandleValue;
-
-class WithoutDtor {
- HandleValue shouldBeWithDtor;
-};
diff --git a/libbindgen/tests/headers/class_with_inner_struct.hpp b/libbindgen/tests/headers/class_with_inner_struct.hpp
deleted file mode 100644
index ec729fe6..00000000
--- a/libbindgen/tests/headers/class_with_inner_struct.hpp
+++ /dev/null
@@ -1,43 +0,0 @@
-// bindgen-flags: -- -std=c++11
-
-class A {
- unsigned c;
- struct Segment { int begin, end; };
- union {
- int f;
- } named_union;
- union {
- int d;
- };
-};
-
-class B {
- unsigned d;
- struct Segment { int begin, end; };
-};
-
-
-enum class StepSyntax {
- Keyword, // step-start and step-end
- FunctionalWithoutKeyword, // steps(...)
- FunctionalWithStartKeyword, // steps(..., start)
- FunctionalWithEndKeyword, // steps(..., end)
-};
-
-class C {
- unsigned d;
- union {
- struct {
- float mX1;
- float mY1;
- float mX2;
- float mY2;
- } mFunc;
- struct {
- StepSyntax mStepSyntax;
- unsigned int mSteps;
- };
- };
- // To ensure it doesn't collide
- struct Segment { int begin, end; };
-};
diff --git a/libbindgen/tests/headers/class_with_typedef.hpp b/libbindgen/tests/headers/class_with_typedef.hpp
deleted file mode 100644
index 8707cffe..00000000
--- a/libbindgen/tests/headers/class_with_typedef.hpp
+++ /dev/null
@@ -1,22 +0,0 @@
-typedef int AnotherInt;
-
-class C {
-public:
- typedef int MyInt;
- typedef const char* Lookup;
- MyInt c;
- MyInt* ptr;
- MyInt arr[10];
- AnotherInt d;
- AnotherInt* other_ptr;
-
- void method(MyInt c);
- void methodRef(MyInt& c);
- void complexMethodRef(Lookup& c);
- void anotherMethod(AnotherInt c);
-};
-
-class D: public C {
-public:
- MyInt* ptr;
-};
diff --git a/libbindgen/tests/headers/complex.h b/libbindgen/tests/headers/complex.h
deleted file mode 100644
index 04877a4e..00000000
--- a/libbindgen/tests/headers/complex.h
+++ /dev/null
@@ -1,16 +0,0 @@
-
-#define COMPLEX_TEST(ty_, name_) \
- struct Test##name_ { \
- ty_ _Complex mMember; \
- \
- }; \
- struct Test##name_##Ptr { \
- ty_ _Complex* mMember; \
- };
-
-COMPLEX_TEST(double, Double)
-COMPLEX_TEST(float, Float)
-
-// FIXME: 128-byte-aligned in some machines
-// which we can't support right now in Rust.
-// COMPLEX_TEST(long double, LongDouble)
diff --git a/libbindgen/tests/headers/complex_global.h b/libbindgen/tests/headers/complex_global.h
deleted file mode 100644
index d9f9fb01..00000000
--- a/libbindgen/tests/headers/complex_global.h
+++ /dev/null
@@ -1,3 +0,0 @@
-float _Complex globalValueFloat;
-double _Complex globalValueDouble;
-long double _Complex globalValueLongDouble;
diff --git a/libbindgen/tests/headers/const_bool.hpp b/libbindgen/tests/headers/const_bool.hpp
deleted file mode 100644
index 633a7c90..00000000
--- a/libbindgen/tests/headers/const_bool.hpp
+++ /dev/null
@@ -1,9 +0,0 @@
-// bindgen-unstable
-
-const bool k = true;
-struct A {
- static const bool k = false;
-};
-
-typedef bool foo;
-const foo k2 = true;
diff --git a/libbindgen/tests/headers/const_enum_unnamed.hpp b/libbindgen/tests/headers/const_enum_unnamed.hpp
deleted file mode 100644
index eb139434..00000000
--- a/libbindgen/tests/headers/const_enum_unnamed.hpp
+++ /dev/null
@@ -1,9 +0,0 @@
-
-enum {
- FOO_BAR,
- FOO_BAZ,
-};
-
-class Foo {
- enum { FOO_BAR = 10 };
-};
diff --git a/libbindgen/tests/headers/const_ptr.hpp b/libbindgen/tests/headers/const_ptr.hpp
deleted file mode 100644
index 66744f8b..00000000
--- a/libbindgen/tests/headers/const_ptr.hpp
+++ /dev/null
@@ -1,3 +0,0 @@
-extern "C" {
- void foo(const void* bar);
-}
diff --git a/libbindgen/tests/headers/const_resolved_ty.h b/libbindgen/tests/headers/const_resolved_ty.h
deleted file mode 100644
index 2521e61c..00000000
--- a/libbindgen/tests/headers/const_resolved_ty.h
+++ /dev/null
@@ -1,3 +0,0 @@
-typedef unsigned char uint8_t;
-
-void foo(const uint8_t* foo);
diff --git a/libbindgen/tests/headers/const_tparam.hpp b/libbindgen/tests/headers/const_tparam.hpp
deleted file mode 100644
index 05f26e4a..00000000
--- a/libbindgen/tests/headers/const_tparam.hpp
+++ /dev/null
@@ -1,5 +0,0 @@
-template<typename T>
-class C {
- const T* const foo;
- const T* bar;
-};
diff --git a/libbindgen/tests/headers/constant-evaluate.h b/libbindgen/tests/headers/constant-evaluate.h
deleted file mode 100644
index f9f1fa66..00000000
--- a/libbindgen/tests/headers/constant-evaluate.h
+++ /dev/null
@@ -1,19 +0,0 @@
-// bindgen-unstable
-
-enum {
- foo = 4,
- bar = 8,
-};
-
-typedef unsigned long long EasyToOverflow;
-const EasyToOverflow k = 0x80000000;
-
-const EasyToOverflow k_expr = 1ULL << 60;
-
-const long long BAZ = (1 << foo) | bar;
-const double fuzz = (1 + 50.0f);
-const char BAZZ = '5';
-const char WAT = '\0';
-
-const char* bytestring = "Foo";
-const char* NOT_UTF8 = "\xf0\x28\x8c\x28";
diff --git a/libbindgen/tests/headers/constify-enum.h b/libbindgen/tests/headers/constify-enum.h
deleted file mode 100644
index a5b4052c..00000000
--- a/libbindgen/tests/headers/constify-enum.h
+++ /dev/null
@@ -1,13 +0,0 @@
-
-enum nsCSSPropertyID {
- eCSSProperty_a,
- eCSSProperty_b,
-
- eCSSProperty_COUNT, /**< <div rustbindgen constant></div> */
- eCSSProperty_COUNT_DUMMY2 = eCSSProperty_COUNT - 1, /**< <div rustbindgen hide></div> */
-
- eCSSPropertyAlias_aa,
- eCSSPropertyAlias_bb,
-
- eCSSProperty_COUNT_unexistingVariantValue, /**< <div rustbindgen constant></div> */
-};
diff --git a/libbindgen/tests/headers/constructor-tp.hpp b/libbindgen/tests/headers/constructor-tp.hpp
deleted file mode 100644
index 6e55ea78..00000000
--- a/libbindgen/tests/headers/constructor-tp.hpp
+++ /dev/null
@@ -1,26 +0,0 @@
-
-template<typename T>
-class Foo {
-public:
- Foo();
-
- void doBaz();
-};
-
-template<typename T>
-inline void
-Foo<T>::doBaz() {
-}
-
-class Bar {
-public:
- Bar();
-};
-
-template<typename T>
-Foo<T>::Foo() {
-}
-
-inline
-Bar::Bar() {
-}
diff --git a/libbindgen/tests/headers/constructors.hpp b/libbindgen/tests/headers/constructors.hpp
deleted file mode 100644
index d4174889..00000000
--- a/libbindgen/tests/headers/constructors.hpp
+++ /dev/null
@@ -1,13 +0,0 @@
-
-class TestOverload {
- // This one shouldnt' be generated.
- TestOverload();
-public:
- TestOverload(int);
- TestOverload(double);
-};
-
-class TestPublicNoArgs {
-public:
- TestPublicNoArgs();
-};
diff --git a/libbindgen/tests/headers/convert-floats.h b/libbindgen/tests/headers/convert-floats.h
deleted file mode 100644
index 08d9fe0b..00000000
--- a/libbindgen/tests/headers/convert-floats.h
+++ /dev/null
@@ -1,9 +0,0 @@
-// bindgen-flags: --no-convert-floats
-
-struct foo {
- float bar, baz;
- double bazz;
- long double* bazzz;
- float _Complex complexFloat;
- double _Complex complexDouble;
-};
diff --git a/libbindgen/tests/headers/crtp.hpp b/libbindgen/tests/headers/crtp.hpp
deleted file mode 100644
index a5477c54..00000000
--- a/libbindgen/tests/headers/crtp.hpp
+++ /dev/null
@@ -1,12 +0,0 @@
-template<class T>
-class Base {};
-
-class Derived : public Base<Derived> {};
-
-template<class T>
-class BaseWithDestructor {
- ~BaseWithDestructor();
-};
-
-class DerivedFromBaseWithDestructor :
- public BaseWithDestructor<DerivedFromBaseWithDestructor> {};
diff --git a/libbindgen/tests/headers/dash_language.h b/libbindgen/tests/headers/dash_language.h
deleted file mode 100644
index 4c8bb58d..00000000
--- a/libbindgen/tests/headers/dash_language.h
+++ /dev/null
@@ -1,6 +0,0 @@
-// bindgen-flags: -- -x c++ --std=c++11
-
-template<typename T>
-struct Foo {
- int bar;
-};
diff --git a/libbindgen/tests/headers/decl_extern_int_twice.h b/libbindgen/tests/headers/decl_extern_int_twice.h
deleted file mode 100644
index 06f80e87..00000000
--- a/libbindgen/tests/headers/decl_extern_int_twice.h
+++ /dev/null
@@ -1,2 +0,0 @@
-extern int foo;
-extern int foo;
diff --git a/libbindgen/tests/headers/decl_ptr_to_array.h b/libbindgen/tests/headers/decl_ptr_to_array.h
deleted file mode 100644
index 3222cbd4..00000000
--- a/libbindgen/tests/headers/decl_ptr_to_array.h
+++ /dev/null
@@ -1 +0,0 @@
-int (*foo)[1];
diff --git a/libbindgen/tests/headers/disable-namespacing.hpp b/libbindgen/tests/headers/disable-namespacing.hpp
deleted file mode 100644
index 11191361..00000000
--- a/libbindgen/tests/headers/disable-namespacing.hpp
+++ /dev/null
@@ -1,9 +0,0 @@
-// bindgen-flags: --disable-name-namespacing
-
-namespace foo {
-namespace bar {
-
-typedef int Baz;
-
-}
-}
diff --git a/libbindgen/tests/headers/duplicated-namespaces-definitions.hpp b/libbindgen/tests/headers/duplicated-namespaces-definitions.hpp
deleted file mode 100644
index 7c8888de..00000000
--- a/libbindgen/tests/headers/duplicated-namespaces-definitions.hpp
+++ /dev/null
@@ -1,18 +0,0 @@
-// bindgen-flags: --enable-cxx-namespaces
-
-namespace foo {
- class Bar;
-}
-
-namespace bar {
- struct Foo {
- foo::Bar* ptr;
- };
-};
-
-namespace foo {
- class Bar {
- int foo;
- bool baz;
- };
-}
diff --git a/libbindgen/tests/headers/duplicated-namespaces.hpp b/libbindgen/tests/headers/duplicated-namespaces.hpp
deleted file mode 100644
index 10e1933f..00000000
--- a/libbindgen/tests/headers/duplicated-namespaces.hpp
+++ /dev/null
@@ -1,4 +0,0 @@
-// bindgen-flags: --enable-cxx-namespaces
-
-namespace std {}
-namespace std {}
diff --git a/libbindgen/tests/headers/duplicated_constants_in_ns.hpp b/libbindgen/tests/headers/duplicated_constants_in_ns.hpp
deleted file mode 100644
index bb343641..00000000
--- a/libbindgen/tests/headers/duplicated_constants_in_ns.hpp
+++ /dev/null
@@ -1,7 +0,0 @@
-// bindgen-flags: --enable-cxx-namespaces
-namespace foo {
- const int FOO = 4;
-}
-namespace bar {
- const int FOO = 5;
-}
diff --git a/libbindgen/tests/headers/elaborated.hpp b/libbindgen/tests/headers/elaborated.hpp
deleted file mode 100644
index 4bfbff23..00000000
--- a/libbindgen/tests/headers/elaborated.hpp
+++ /dev/null
@@ -1,5 +0,0 @@
-namespace whatever {
- typedef int whatever_t;
-}
-
-void something(const whatever::whatever_t *wat);
diff --git a/libbindgen/tests/headers/empty_template_param_name.hpp b/libbindgen/tests/headers/empty_template_param_name.hpp
deleted file mode 100644
index 0e9f3c34..00000000
--- a/libbindgen/tests/headers/empty_template_param_name.hpp
+++ /dev/null
@@ -1,6 +0,0 @@
-// bindgen-flags: -- -std=c++11
-
-template<typename...> using __void_t = void;
-
-template<typename _Iterator, typename = __void_t<>>
- struct __iterator_traits { };
diff --git a/libbindgen/tests/headers/enum.h b/libbindgen/tests/headers/enum.h
deleted file mode 100644
index f2d301e7..00000000
--- a/libbindgen/tests/headers/enum.h
+++ /dev/null
@@ -1,9 +0,0 @@
-enum Foo {
- Bar = 0,
- Qux
-};
-
-enum Neg {
- MinusOne = -1,
- One = 1,
-};
diff --git a/libbindgen/tests/headers/enum_alias.hpp b/libbindgen/tests/headers/enum_alias.hpp
deleted file mode 100644
index 658f8fde..00000000
--- a/libbindgen/tests/headers/enum_alias.hpp
+++ /dev/null
@@ -1,7 +0,0 @@
-// bindgen-flags: -- -std=c++11
-
-typedef unsigned char uint8_t;
-
-enum Bar : uint8_t {
- VAL
-};
diff --git a/libbindgen/tests/headers/enum_and_vtable_mangling.hpp b/libbindgen/tests/headers/enum_and_vtable_mangling.hpp
deleted file mode 100644
index 3abd6a29..00000000
--- a/libbindgen/tests/headers/enum_and_vtable_mangling.hpp
+++ /dev/null
@@ -1,11 +0,0 @@
-
-enum {
- match,
- whatever_else,
-};
-
-class C {
- int i;
-public:
- virtual void match() { };
-};
diff --git a/libbindgen/tests/headers/enum_dupe.h b/libbindgen/tests/headers/enum_dupe.h
deleted file mode 100644
index 6d3591d5..00000000
--- a/libbindgen/tests/headers/enum_dupe.h
+++ /dev/null
@@ -1,4 +0,0 @@
-enum Foo {
- Bar = 1,
- Dupe = 1
-};
diff --git a/libbindgen/tests/headers/enum_explicit_type.hpp b/libbindgen/tests/headers/enum_explicit_type.hpp
deleted file mode 100644
index 78eadd40..00000000
--- a/libbindgen/tests/headers/enum_explicit_type.hpp
+++ /dev/null
@@ -1,28 +0,0 @@
-// bindgen-flags: -- -std=c++11
-
-enum Foo: unsigned char {
- Bar = 0,
- Qux
-};
-
-enum Neg: char {
- MinusOne = -1,
- One = 1,
-};
-
-enum Bigger: unsigned short {
- Much = 255,
- Larger
-};
-
-enum MuchLong: long {
- MuchLow = -4294967296,
-};
-
-enum MuchLongLong: long long {
- I64_MIN = 1ll << 63,
-};
-
-enum MuchULongLong: unsigned long long {
- MuchHigh = 4294967296,
-};
diff --git a/libbindgen/tests/headers/enum_in_template_with_typedef.hpp b/libbindgen/tests/headers/enum_in_template_with_typedef.hpp
deleted file mode 100644
index ac19b781..00000000
--- a/libbindgen/tests/headers/enum_in_template_with_typedef.hpp
+++ /dev/null
@@ -1,16 +0,0 @@
-// bindgen-flags: -- -std=c++11
-
-namespace std {
- template <typename Char> class fbstring_core;
-}
-
-typedef unsigned char uint8_t;
-namespace std {
- template <typename Char> class fbstring_core {
- typedef uint8_t category_type;
- enum Category : category_type {
- Foo = 1,
- Bar = 4,
- };
- };
-}
diff --git a/libbindgen/tests/headers/enum_negative.h b/libbindgen/tests/headers/enum_negative.h
deleted file mode 100644
index 6cbdfe04..00000000
--- a/libbindgen/tests/headers/enum_negative.h
+++ /dev/null
@@ -1,4 +0,0 @@
-enum Foo {
- Bar = -2,
- Qux = 1,
-};
diff --git a/libbindgen/tests/headers/enum_packed.h b/libbindgen/tests/headers/enum_packed.h
deleted file mode 100644
index 8654d110..00000000
--- a/libbindgen/tests/headers/enum_packed.h
+++ /dev/null
@@ -1,14 +0,0 @@
-enum __attribute__((packed)) Foo {
- Bar = 0,
- Qux
-};
-
-enum __attribute__((packed)) Neg {
- MinusOne = -1,
- One = 1,
-};
-
-enum __attribute__((packed)) Bigger {
- Much = 255,
- Larger
-};
diff --git a/libbindgen/tests/headers/eval-variadic-template-parameter.hpp b/libbindgen/tests/headers/eval-variadic-template-parameter.hpp
deleted file mode 100644
index 0a9e51c1..00000000
--- a/libbindgen/tests/headers/eval-variadic-template-parameter.hpp
+++ /dev/null
@@ -1,8 +0,0 @@
-// bindgen-flags: -- -std=c++11
-
-template <typename... T>
-struct B {
- // Can't generate anything meaningful in Rust for this, but we shouldn't
- // trigger an assertion inside Clang.
- static const long c = sizeof...(T);
-};
diff --git a/libbindgen/tests/headers/extern.hpp b/libbindgen/tests/headers/extern.hpp
deleted file mode 100644
index 0779e038..00000000
--- a/libbindgen/tests/headers/extern.hpp
+++ /dev/null
@@ -1,3 +0,0 @@
-extern "C" {
-#include "func_proto.h"
-}
diff --git a/libbindgen/tests/headers/float128.hpp b/libbindgen/tests/headers/float128.hpp
deleted file mode 100644
index f554e88e..00000000
--- a/libbindgen/tests/headers/float128.hpp
+++ /dev/null
@@ -1,13 +0,0 @@
-// FIXME: libclang < 3.9 does not expose `__float128` in its interface, so this
-// test will fail. Once we remove support for `--features llvm_stable` and
-// require libclang >= 3.9, we can reenable this test.
-//
-// static __float128 global = 1.0;
-
-// FIXME: We have no way to get 128 bit aligned structs in Rust at the moment,
-// and therefore the generated layout tests for this struct will fail. When we
-// can enforce 128 bit alignment, we can re-enable this test.
-//
-// struct A {
-// __float128 f;
-// };
diff --git a/libbindgen/tests/headers/forward-inherit-struct-with-fields.hpp b/libbindgen/tests/headers/forward-inherit-struct-with-fields.hpp
deleted file mode 100644
index 437fff5d..00000000
--- a/libbindgen/tests/headers/forward-inherit-struct-with-fields.hpp
+++ /dev/null
@@ -1,8 +0,0 @@
-template <typename> class Rooted;
-namespace js {
- template <typename T> class RootedBase {
- T* foo;
- Rooted<T>* next;
- };
-}
-template <typename T> class Rooted : js::RootedBase<T> {};
diff --git a/libbindgen/tests/headers/forward-inherit-struct.hpp b/libbindgen/tests/headers/forward-inherit-struct.hpp
deleted file mode 100644
index ac7aef5e..00000000
--- a/libbindgen/tests/headers/forward-inherit-struct.hpp
+++ /dev/null
@@ -1,5 +0,0 @@
-template <typename> class Rooted;
-namespace js {
- template <typename T> class RootedBase {};
-}
-template <typename T> class Rooted : js::RootedBase<T> {};
diff --git a/libbindgen/tests/headers/forward_declared_struct.h b/libbindgen/tests/headers/forward_declared_struct.h
deleted file mode 100644
index 2a69450c..00000000
--- a/libbindgen/tests/headers/forward_declared_struct.h
+++ /dev/null
@@ -1,11 +0,0 @@
-struct a;
-
-struct a {
- int b;
-};
-
-struct c {
- int d;
-};
-
-struct c; \ No newline at end of file
diff --git a/libbindgen/tests/headers/func_proto.h b/libbindgen/tests/headers/func_proto.h
deleted file mode 100644
index 51139ca9..00000000
--- a/libbindgen/tests/headers/func_proto.h
+++ /dev/null
@@ -1 +0,0 @@
-typedef int foo(int bar);
diff --git a/libbindgen/tests/headers/func_ptr.h b/libbindgen/tests/headers/func_ptr.h
deleted file mode 100644
index a4662f3d..00000000
--- a/libbindgen/tests/headers/func_ptr.h
+++ /dev/null
@@ -1 +0,0 @@
-int (*foo) (int x, int y);
diff --git a/libbindgen/tests/headers/func_ptr_in_struct.h b/libbindgen/tests/headers/func_ptr_in_struct.h
deleted file mode 100644
index 988db5b3..00000000
--- a/libbindgen/tests/headers/func_ptr_in_struct.h
+++ /dev/null
@@ -1,6 +0,0 @@
-
-enum baz;
-
-struct Foo {
- enum baz (*bar) (int x, int y);
-};
diff --git a/libbindgen/tests/headers/func_with_array_arg.h b/libbindgen/tests/headers/func_with_array_arg.h
deleted file mode 100644
index 1b81702b..00000000
--- a/libbindgen/tests/headers/func_with_array_arg.h
+++ /dev/null
@@ -1 +0,0 @@
-void f(int x[2]);
diff --git a/libbindgen/tests/headers/func_with_func_ptr_arg.h b/libbindgen/tests/headers/func_with_func_ptr_arg.h
deleted file mode 100644
index 629c84ab..00000000
--- a/libbindgen/tests/headers/func_with_func_ptr_arg.h
+++ /dev/null
@@ -1 +0,0 @@
-void foo(void (*bar)());
diff --git a/libbindgen/tests/headers/in_class_typedef.hpp b/libbindgen/tests/headers/in_class_typedef.hpp
deleted file mode 100644
index dda7472d..00000000
--- a/libbindgen/tests/headers/in_class_typedef.hpp
+++ /dev/null
@@ -1,10 +0,0 @@
-
-template<typename T>
-class Foo {
- typedef T elem_type;
- typedef T* ptr_type;
-
- typedef struct Bar {
- int x, y;
- } Bar;
-};
diff --git a/libbindgen/tests/headers/inherit-namespaced.hpp b/libbindgen/tests/headers/inherit-namespaced.hpp
deleted file mode 100644
index 61eafd5a..00000000
--- a/libbindgen/tests/headers/inherit-namespaced.hpp
+++ /dev/null
@@ -1,4 +0,0 @@
-namespace js {
- template <typename T> class RootedBase {};
-}
-template <typename T> class Rooted : js::RootedBase<T> {};
diff --git a/libbindgen/tests/headers/inherit_named.hpp b/libbindgen/tests/headers/inherit_named.hpp
deleted file mode 100644
index 9881d1b6..00000000
--- a/libbindgen/tests/headers/inherit_named.hpp
+++ /dev/null
@@ -1,5 +0,0 @@
-template<typename T>
-class Wohoo {};
-
-template<typename T>
-class Weeee : public T {};
diff --git a/libbindgen/tests/headers/inherit_typedef.hpp b/libbindgen/tests/headers/inherit_typedef.hpp
deleted file mode 100644
index 8d699e82..00000000
--- a/libbindgen/tests/headers/inherit_typedef.hpp
+++ /dev/null
@@ -1,5 +0,0 @@
-struct Foo {};
-
-typedef Foo TypedefedFoo;
-
-struct Bar: public TypedefedFoo {};
diff --git a/libbindgen/tests/headers/inline-function.h b/libbindgen/tests/headers/inline-function.h
deleted file mode 100644
index 02cb7c08..00000000
--- a/libbindgen/tests/headers/inline-function.h
+++ /dev/null
@@ -1,6 +0,0 @@
-// bindgen-unstable
-
-/** The point of this test is to _not_ generate these functions. */
-
-inline static int myadd(const int x, const int y) { return x + y; }
-static int mysub(const int x, const int y) { return x - y; }
diff --git a/libbindgen/tests/headers/inline_namespace.hpp b/libbindgen/tests/headers/inline_namespace.hpp
deleted file mode 100644
index 2ccf8ab0..00000000
--- a/libbindgen/tests/headers/inline_namespace.hpp
+++ /dev/null
@@ -1,11 +0,0 @@
-// bindgen-flags: --enable-cxx-namespaces -- -std=c++11
-
-namespace foo {
- inline namespace bar {
- using Ty = int;
- };
-};
-
-class Bar {
- foo::Ty baz;
-};
diff --git a/libbindgen/tests/headers/inline_namespace_conservative.hpp b/libbindgen/tests/headers/inline_namespace_conservative.hpp
deleted file mode 100644
index 50068a2e..00000000
--- a/libbindgen/tests/headers/inline_namespace_conservative.hpp
+++ /dev/null
@@ -1,12 +0,0 @@
-// bindgen-flags: --enable-cxx-namespaces --conservative-inline-namespaces -- -std=c++11
-
-namespace foo {
- inline namespace bar {
- using Ty = int;
- };
- using Ty = long long;
-};
-
-class Bar {
- foo::bar::Ty baz;
-};
diff --git a/libbindgen/tests/headers/inline_namespace_whitelist.hpp b/libbindgen/tests/headers/inline_namespace_whitelist.hpp
deleted file mode 100644
index 30047bbe..00000000
--- a/libbindgen/tests/headers/inline_namespace_whitelist.hpp
+++ /dev/null
@@ -1,7 +0,0 @@
-// bindgen-flags: --enable-cxx-namespaces --whitelist-type=std::string -- -std=c++11
-
-namespace std {
- inline namespace bar {
- using string = const char*;
- };
-};
diff --git a/libbindgen/tests/headers/inner_const.hpp b/libbindgen/tests/headers/inner_const.hpp
deleted file mode 100644
index 25c2e603..00000000
--- a/libbindgen/tests/headers/inner_const.hpp
+++ /dev/null
@@ -1,6 +0,0 @@
-
-class Foo {
- static int BOO;
- static Foo whatever;
- int bar;
-};
diff --git a/libbindgen/tests/headers/inner_template_self.hpp b/libbindgen/tests/headers/inner_template_self.hpp
deleted file mode 100644
index 1ae5af06..00000000
--- a/libbindgen/tests/headers/inner_template_self.hpp
+++ /dev/null
@@ -1,10 +0,0 @@
-
-template <typename T>
-class LinkedList {
- LinkedList<T>* next;
- LinkedList* prev;
-};
-
-class InstantiateIt {
- LinkedList<int> m_list;
-};
diff --git a/libbindgen/tests/headers/int128_t.h b/libbindgen/tests/headers/int128_t.h
deleted file mode 100644
index eece252c..00000000
--- a/libbindgen/tests/headers/int128_t.h
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * FIXME: Uncomment this once we can generate the proper alignment for the type,
- * i.e., when we use u128/i128.
-struct Foo {
- __int128 foo;
-};
- */
diff --git a/libbindgen/tests/headers/issue-358.hpp b/libbindgen/tests/headers/issue-358.hpp
deleted file mode 100644
index b14521b7..00000000
--- a/libbindgen/tests/headers/issue-358.hpp
+++ /dev/null
@@ -1,8 +0,0 @@
-// bindgen-flags: -- -std=c++11
-namespace JS {
-template <typename> class PersistentRooted;
-}
-template <typename> class a { a *b; };
-namespace JS {
-template <typename c> class PersistentRooted : a<PersistentRooted<c>> {};
-}
diff --git a/libbindgen/tests/headers/issue-372.hpp b/libbindgen/tests/headers/issue-372.hpp
deleted file mode 100644
index a072f061..00000000
--- a/libbindgen/tests/headers/issue-372.hpp
+++ /dev/null
@@ -1,16 +0,0 @@
-// bindgen-flags: --enable-cxx-namespaces
-template <typename a, int b> class c { a e[b]; };
-class d;
-template <typename g, g f> class C { c<d, f> h; };
-class i {
- i *j;
- i *k;
- bool l;
-};
-class d {
- i m;
-};
-enum n { o, p, q, r, s, t, b, ae, e, ag, ah, ai };
-class F {
- C<n, ai> w;
-};
diff --git a/libbindgen/tests/headers/issue_311.hpp b/libbindgen/tests/headers/issue_311.hpp
deleted file mode 100644
index a8d7fd99..00000000
--- a/libbindgen/tests/headers/issue_311.hpp
+++ /dev/null
@@ -1,5 +0,0 @@
-// bindgen-flags: --enable-cxx-namespaces
-
-struct jsval_layout {
- struct {};
-};
diff --git a/libbindgen/tests/headers/issue_315.hpp b/libbindgen/tests/headers/issue_315.hpp
deleted file mode 100644
index e58cb5e3..00000000
--- a/libbindgen/tests/headers/issue_315.hpp
+++ /dev/null
@@ -1,2 +0,0 @@
-/// <div rustbindgen replaces="c"></div>
-template <typename a> using b = a;
diff --git a/libbindgen/tests/headers/jsval_layout_opaque.hpp b/libbindgen/tests/headers/jsval_layout_opaque.hpp
deleted file mode 100644
index 85c5be63..00000000
--- a/libbindgen/tests/headers/jsval_layout_opaque.hpp
+++ /dev/null
@@ -1,424 +0,0 @@
-// bindgen-flags: --no-unstable-rust -- -std=c++11
-
-/**
- * These typedefs are hacky, but keep our tests consistent across 64-bit
- * platforms, otherwise the id's change and our CI is unhappy.
- */
-typedef unsigned char uint8_t;
-typedef int int32_t;
-typedef unsigned int uint32_t;
-typedef unsigned long long uint64_t;
-typedef unsigned long long size_t;
-typedef unsigned long long uintptr_t;
-
-
-#define JS_PUNBOX64
-#define IS_LITTLE_ENDIAN
-
-/*
- * Try to get jsvals 64-bit aligned. We could almost assert that all values are
- * aligned, but MSVC and GCC occasionally break alignment.
- */
-#if defined(__GNUC__) || defined(__xlc__) || defined(__xlC__)
-# define JSVAL_ALIGNMENT __attribute__((aligned (8)))
-#elif defined(_MSC_VER)
- /*
- * Structs can be aligned with MSVC, but not if they are used as parameters,
- * so we just don't try to align.
- */
-# define JSVAL_ALIGNMENT
-#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
-# define JSVAL_ALIGNMENT
-#elif defined(__HP_cc) || defined(__HP_aCC)
-# define JSVAL_ALIGNMENT
-#endif
-
-#if defined(JS_PUNBOX64)
-# define JSVAL_TAG_SHIFT 47
-#endif
-
-/*
- * We try to use enums so that printing a jsval_layout in the debugger shows
- * nice symbolic type tags, however we can only do this when we can force the
- * underlying type of the enum to be the desired size.
- */
-#if !defined(__SUNPRO_CC) && !defined(__xlC__)
-
-#if defined(_MSC_VER)
-# define JS_ENUM_HEADER(id, type) enum id : type
-# define JS_ENUM_FOOTER(id)
-#else
-# define JS_ENUM_HEADER(id, type) enum id
-# define JS_ENUM_FOOTER(id) __attribute__((packed))
-#endif
-
-/* Remember to propagate changes to the C defines below. */
-JS_ENUM_HEADER(JSValueType, uint8_t)
-{
- JSVAL_TYPE_DOUBLE = 0x00,
- JSVAL_TYPE_INT32 = 0x01,
- JSVAL_TYPE_UNDEFINED = 0x02,
- JSVAL_TYPE_BOOLEAN = 0x03,
- JSVAL_TYPE_MAGIC = 0x04,
- JSVAL_TYPE_STRING = 0x05,
- JSVAL_TYPE_SYMBOL = 0x06,
- JSVAL_TYPE_NULL = 0x07,
- JSVAL_TYPE_OBJECT = 0x08,
-
- /* These never appear in a jsval; they are only provided as an out-of-band value. */
- JSVAL_TYPE_UNKNOWN = 0x20,
- JSVAL_TYPE_MISSING = 0x21
-} JS_ENUM_FOOTER(JSValueType);
-
-static_assert(sizeof(JSValueType) == 1,
- "compiler typed enum support is apparently buggy");
-
-#if defined(JS_NUNBOX32)
-
-/* Remember to propagate changes to the C defines below. */
-JS_ENUM_HEADER(JSValueTag, uint32_t)
-{
- JSVAL_TAG_CLEAR = 0xFFFFFF80,
- JSVAL_TAG_INT32 = JSVAL_TAG_CLEAR | JSVAL_TYPE_INT32,
- JSVAL_TAG_UNDEFINED = JSVAL_TAG_CLEAR | JSVAL_TYPE_UNDEFINED,
- JSVAL_TAG_STRING = JSVAL_TAG_CLEAR | JSVAL_TYPE_STRING,
- JSVAL_TAG_SYMBOL = JSVAL_TAG_CLEAR | JSVAL_TYPE_SYMBOL,
- JSVAL_TAG_BOOLEAN = JSVAL_TAG_CLEAR | JSVAL_TYPE_BOOLEAN,
- JSVAL_TAG_MAGIC = JSVAL_TAG_CLEAR | JSVAL_TYPE_MAGIC,
- JSVAL_TAG_NULL = JSVAL_TAG_CLEAR | JSVAL_TYPE_NULL,
- JSVAL_TAG_OBJECT = JSVAL_TAG_CLEAR | JSVAL_TYPE_OBJECT
-} JS_ENUM_FOOTER(JSValueTag);
-
-static_assert(sizeof(JSValueTag) == sizeof(uint32_t),
- "compiler typed enum support is apparently buggy");
-
-#elif defined(JS_PUNBOX64)
-
-/* Remember to propagate changes to the C defines below. */
-JS_ENUM_HEADER(JSValueTag, uint32_t)
-{
- JSVAL_TAG_MAX_DOUBLE = 0x1FFF0,
- JSVAL_TAG_INT32 = JSVAL_TAG_MAX_DOUBLE | JSVAL_TYPE_INT32,
- JSVAL_TAG_UNDEFINED = JSVAL_TAG_MAX_DOUBLE | JSVAL_TYPE_UNDEFINED,
- JSVAL_TAG_STRING = JSVAL_TAG_MAX_DOUBLE | JSVAL_TYPE_STRING,
- JSVAL_TAG_SYMBOL = JSVAL_TAG_MAX_DOUBLE | JSVAL_TYPE_SYMBOL,
- JSVAL_TAG_BOOLEAN = JSVAL_TAG_MAX_DOUBLE | JSVAL_TYPE_BOOLEAN,
- JSVAL_TAG_MAGIC = JSVAL_TAG_MAX_DOUBLE | JSVAL_TYPE_MAGIC,
- JSVAL_TAG_NULL = JSVAL_TAG_MAX_DOUBLE | JSVAL_TYPE_NULL,
- JSVAL_TAG_OBJECT = JSVAL_TAG_MAX_DOUBLE | JSVAL_TYPE_OBJECT
-} JS_ENUM_FOOTER(JSValueTag);
-
-static_assert(sizeof(JSValueTag) == sizeof(uint32_t),
- "compiler typed enum support is apparently buggy");
-
-JS_ENUM_HEADER(JSValueShiftedTag, uint64_t)
-{
- JSVAL_SHIFTED_TAG_MAX_DOUBLE = ((((uint64_t)JSVAL_TAG_MAX_DOUBLE) << JSVAL_TAG_SHIFT) | 0xFFFFFFFF),
- JSVAL_SHIFTED_TAG_INT32 = (((uint64_t)JSVAL_TAG_INT32) << JSVAL_TAG_SHIFT),
- JSVAL_SHIFTED_TAG_UNDEFINED = (((uint64_t)JSVAL_TAG_UNDEFINED) << JSVAL_TAG_SHIFT),
- JSVAL_SHIFTED_TAG_STRING = (((uint64_t)JSVAL_TAG_STRING) << JSVAL_TAG_SHIFT),
- JSVAL_SHIFTED_TAG_SYMBOL = (((uint64_t)JSVAL_TAG_SYMBOL) << JSVAL_TAG_SHIFT),
- JSVAL_SHIFTED_TAG_BOOLEAN = (((uint64_t)JSVAL_TAG_BOOLEAN) << JSVAL_TAG_SHIFT),
- JSVAL_SHIFTED_TAG_MAGIC = (((uint64_t)JSVAL_TAG_MAGIC) << JSVAL_TAG_SHIFT),
- JSVAL_SHIFTED_TAG_NULL = (((uint64_t)JSVAL_TAG_NULL) << JSVAL_TAG_SHIFT),
- JSVAL_SHIFTED_TAG_OBJECT = (((uint64_t)JSVAL_TAG_OBJECT) << JSVAL_TAG_SHIFT)
-} JS_ENUM_FOOTER(JSValueShiftedTag);
-
-static_assert(sizeof(JSValueShiftedTag) == sizeof(uint64_t),
- "compiler typed enum support is apparently buggy");
-
-#endif
-
-/*
- * All our supported compilers implement C++11 |enum Foo : T| syntax, so don't
- * expose these macros. (This macro exists *only* because gcc bug 51242
- * <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51242> makes bit-fields of
- * typed enums trigger a warning that can't be turned off. Don't expose it
- * beyond this file!)
- */
-#undef JS_ENUM_HEADER
-#undef JS_ENUM_FOOTER
-
-#else /* !defined(__SUNPRO_CC) && !defined(__xlC__) */
-
-typedef uint8_t JSValueType;
-#define JSVAL_TYPE_DOUBLE ((uint8_t)0x00)
-#define JSVAL_TYPE_INT32 ((uint8_t)0x01)
-#define JSVAL_TYPE_UNDEFINED ((uint8_t)0x02)
-#define JSVAL_TYPE_BOOLEAN ((uint8_t)0x03)
-#define JSVAL_TYPE_MAGIC ((uint8_t)0x04)
-#define JSVAL_TYPE_STRING ((uint8_t)0x05)
-#define JSVAL_TYPE_SYMBOL ((uint8_t)0x06)
-#define JSVAL_TYPE_NULL ((uint8_t)0x07)
-#define JSVAL_TYPE_OBJECT ((uint8_t)0x08)
-#define JSVAL_TYPE_UNKNOWN ((uint8_t)0x20)
-
-#if defined(JS_NUNBOX32)
-
-typedef uint32_t JSValueTag;
-#define JSVAL_TAG_CLEAR ((uint32_t)(0xFFFFFF80))
-#define JSVAL_TAG_INT32 ((uint32_t)(JSVAL_TAG_CLEAR | JSVAL_TYPE_INT32))
-#define JSVAL_TAG_UNDEFINED ((uint32_t)(JSVAL_TAG_CLEAR | JSVAL_TYPE_UNDEFINED))
-#define JSVAL_TAG_STRING ((uint32_t)(JSVAL_TAG_CLEAR | JSVAL_TYPE_STRING))
-#define JSVAL_TAG_SYMBOL ((uint32_t)(JSVAL_TAG_CLEAR | JSVAL_TYPE_SYMBOL))
-#define JSVAL_TAG_BOOLEAN ((uint32_t)(JSVAL_TAG_CLEAR | JSVAL_TYPE_BOOLEAN))
-#define JSVAL_TAG_MAGIC ((uint32_t)(JSVAL_TAG_CLEAR | JSVAL_TYPE_MAGIC))
-#define JSVAL_TAG_NULL ((uint32_t)(JSVAL_TAG_CLEAR | JSVAL_TYPE_NULL))
-#define JSVAL_TAG_OBJECT ((uint32_t)(JSVAL_TAG_CLEAR | JSVAL_TYPE_OBJECT))
-
-#elif defined(JS_PUNBOX64)
-
-typedef uint32_t JSValueTag;
-#define JSVAL_TAG_MAX_DOUBLE ((uint32_t)(0x1FFF0))
-#define JSVAL_TAG_INT32 (uint32_t)(JSVAL_TAG_MAX_DOUBLE | JSVAL_TYPE_INT32)
-#define JSVAL_TAG_UNDEFINED (uint32_t)(JSVAL_TAG_MAX_DOUBLE | JSVAL_TYPE_UNDEFINED)
-#define JSVAL_TAG_STRING (uint32_t)(JSVAL_TAG_MAX_DOUBLE | JSVAL_TYPE_STRING)
-#define JSVAL_TAG_SYMBOL (uint32_t)(JSVAL_TAG_MAX_DOUBLE | JSVAL_TYPE_SYMBOL)
-#define JSVAL_TAG_BOOLEAN (uint32_t)(JSVAL_TAG_MAX_DOUBLE | JSVAL_TYPE_BOOLEAN)
-#define JSVAL_TAG_MAGIC (uint32_t)(JSVAL_TAG_MAX_DOUBLE | JSVAL_TYPE_MAGIC)
-#define JSVAL_TAG_NULL (uint32_t)(JSVAL_TAG_MAX_DOUBLE | JSVAL_TYPE_NULL)
-#define JSVAL_TAG_OBJECT (uint32_t)(JSVAL_TAG_MAX_DOUBLE | JSVAL_TYPE_OBJECT)
-
-typedef uint64_t JSValueShiftedTag;
-#define JSVAL_SHIFTED_TAG_MAX_DOUBLE ((((uint64_t)JSVAL_TAG_MAX_DOUBLE) << JSVAL_TAG_SHIFT) | 0xFFFFFFFF)
-#define JSVAL_SHIFTED_TAG_INT32 (((uint64_t)JSVAL_TAG_INT32) << JSVAL_TAG_SHIFT)
-#define JSVAL_SHIFTED_TAG_UNDEFINED (((uint64_t)JSVAL_TAG_UNDEFINED) << JSVAL_TAG_SHIFT)
-#define JSVAL_SHIFTED_TAG_STRING (((uint64_t)JSVAL_TAG_STRING) << JSVAL_TAG_SHIFT)
-#define JSVAL_SHIFTED_TAG_SYMBOL (((uint64_t)JSVAL_TAG_SYMBOL) << JSVAL_TAG_SHIFT)
-#define JSVAL_SHIFTED_TAG_BOOLEAN (((uint64_t)JSVAL_TAG_BOOLEAN) << JSVAL_TAG_SHIFT)
-#define JSVAL_SHIFTED_TAG_MAGIC (((uint64_t)JSVAL_TAG_MAGIC) << JSVAL_TAG_SHIFT)
-#define JSVAL_SHIFTED_TAG_NULL (((uint64_t)JSVAL_TAG_NULL) << JSVAL_TAG_SHIFT)
-#define JSVAL_SHIFTED_TAG_OBJECT (((uint64_t)JSVAL_TAG_OBJECT) << JSVAL_TAG_SHIFT)
-
-#endif /* JS_PUNBOX64 */
-#endif /* !defined(__SUNPRO_CC) && !defined(__xlC__) */
-
-#if defined(JS_NUNBOX32)
-
-#define JSVAL_TYPE_TO_TAG(type) ((JSValueTag)(JSVAL_TAG_CLEAR | (type)))
-
-#define JSVAL_LOWER_INCL_TAG_OF_OBJ_OR_NULL_SET JSVAL_TAG_NULL
-#define JSVAL_UPPER_EXCL_TAG_OF_PRIMITIVE_SET JSVAL_TAG_OBJECT
-#define JSVAL_UPPER_INCL_TAG_OF_NUMBER_SET JSVAL_TAG_INT32
-#define JSVAL_LOWER_INCL_TAG_OF_GCTHING_SET JSVAL_TAG_STRING
-
-#elif defined(JS_PUNBOX64)
-
-#define JSVAL_PAYLOAD_MASK 0x00007FFFFFFFFFFFLL
-#define JSVAL_TAG_MASK 0xFFFF800000000000LL
-#define JSVAL_TYPE_TO_TAG(type) ((JSValueTag)(JSVAL_TAG_MAX_DOUBLE | (type)))
-#define JSVAL_TYPE_TO_SHIFTED_TAG(type) (((uint64_t)JSVAL_TYPE_TO_TAG(type)) << JSVAL_TAG_SHIFT)
-
-#define JSVAL_LOWER_INCL_TAG_OF_OBJ_OR_NULL_SET JSVAL_TAG_NULL
-#define JSVAL_UPPER_EXCL_TAG_OF_PRIMITIVE_SET JSVAL_TAG_OBJECT
-#define JSVAL_UPPER_INCL_TAG_OF_NUMBER_SET JSVAL_TAG_INT32
-#define JSVAL_LOWER_INCL_TAG_OF_GCTHING_SET JSVAL_TAG_STRING
-
-#define JSVAL_LOWER_INCL_SHIFTED_TAG_OF_OBJ_OR_NULL_SET JSVAL_SHIFTED_TAG_NULL
-#define JSVAL_UPPER_EXCL_SHIFTED_TAG_OF_PRIMITIVE_SET JSVAL_SHIFTED_TAG_OBJECT
-#define JSVAL_UPPER_EXCL_SHIFTED_TAG_OF_NUMBER_SET JSVAL_SHIFTED_TAG_UNDEFINED
-#define JSVAL_LOWER_INCL_SHIFTED_TAG_OF_GCTHING_SET JSVAL_SHIFTED_TAG_STRING
-
-#endif /* JS_PUNBOX64 */
-
-typedef enum JSWhyMagic
-{
- /** a hole in a native object's elements */
- JS_ELEMENTS_HOLE,
-
- /** there is not a pending iterator value */
- JS_NO_ITER_VALUE,
-
- /** exception value thrown when closing a generator */
- JS_GENERATOR_CLOSING,
-
- /** compiler sentinel value */
- JS_NO_CONSTANT,
-
- /** used in debug builds to catch tracing errors */
- JS_THIS_POISON,
-
- /** used in debug builds to catch tracing errors */
- JS_ARG_POISON,
-
- /** an empty subnode in the AST serializer */
- JS_SERIALIZE_NO_NODE,
-
- /** lazy arguments value on the stack */
- JS_LAZY_ARGUMENTS,
-
- /** optimized-away 'arguments' value */
- JS_OPTIMIZED_ARGUMENTS,
-
- /** magic value passed to natives to indicate construction */
- JS_IS_CONSTRUCTING,
-
- /** arguments.callee has been overwritten */
- JS_OVERWRITTEN_CALLEE,
-
- /** value of static block object slot */
- JS_BLOCK_NEEDS_CLONE,
-
- /** see class js::HashableValue */
- JS_HASH_KEY_EMPTY,
-
- /** error while running Ion code */
- JS_ION_ERROR,
-
- /** missing recover instruction result */
- JS_ION_BAILOUT,
-
- /** optimized out slot */
- JS_OPTIMIZED_OUT,
-
- /** uninitialized lexical bindings that produce ReferenceError on touch. */
- JS_UNINITIALIZED_LEXICAL,
-
- /** for local use */
- JS_GENERIC_MAGIC,
-
- JS_WHY_MAGIC_COUNT
-} JSWhyMagic;
-
-#if defined(IS_LITTLE_ENDIAN)
-# if defined(JS_NUNBOX32)
-typedef union jsval_layout
-{
- uint64_t asBits;
- struct {
- union {
- int32_t i32;
- uint32_t u32;
- uint32_t boo; // Don't use |bool| -- it must be four bytes.
- JSString* str;
- JS::Symbol* sym;
- JSObject* obj;
- js::gc::Cell* cell;
- void* ptr;
- JSWhyMagic why;
- size_t word;
- uintptr_t uintptr;
- } payload;
- JSValueTag tag;
- } s;
- double asDouble;
- void* asPtr;
-} JSVAL_ALIGNMENT jsval_layout;
-# elif defined(JS_PUNBOX64)
-typedef union jsval_layout
-{
- uint64_t asBits;
-#if !defined(_WIN64)
- /* MSVC does not pack these correctly :-( */
- struct {
- uint64_t payload47 : 47;
- JSValueTag tag : 17;
- } debugView;
-#endif
- struct {
- union {
- int32_t i32;
- uint32_t u32;
- JSWhyMagic why;
- } payload;
- } s;
- double asDouble;
- void* asPtr;
- size_t asWord;
- uintptr_t asUIntPtr;
-} JSVAL_ALIGNMENT jsval_layout;
-# endif /* JS_PUNBOX64 */
-#else /* defined(IS_LITTLE_ENDIAN) */
-# if defined(JS_NUNBOX32)
-typedef union jsval_layout
-{
- uint64_t asBits;
- struct {
- JSValueTag tag;
- union {
- int32_t i32;
- uint32_t u32;
- uint32_t boo; // Don't use |bool| -- it must be four bytes.
- JSString* str;
- JS::Symbol* sym;
- JSObject* obj;
- js::gc::Cell* cell;
- void* ptr;
- JSWhyMagic why;
- size_t word;
- uintptr_t uintptr;
- } payload;
- } s;
- double asDouble;
- void* asPtr;
-} JSVAL_ALIGNMENT jsval_layout;
-# elif defined(JS_PUNBOX64)
-typedef union jsval_layout
-{
- uint64_t asBits;
- struct {
- JSValueTag tag : 17;
- uint64_t payload47 : 47;
- } debugView;
- struct {
- uint32_t padding;
- union {
- int32_t i32;
- uint32_t u32;
- JSWhyMagic why;
- } payload;
- } s;
- double asDouble;
- void* asPtr;
- size_t asWord;
- uintptr_t asUIntPtr;
-} JSVAL_ALIGNMENT jsval_layout;
-# endif /* JS_PUNBOX64 */
-#endif /* defined(IS_LITTLE_ENDIAN) */
-
-/*
- * For codesize purposes on some platforms, it's important that the
- * compiler know that JS::Values constructed from constant values can be
- * folded to constant bit patterns at compile time, rather than
- * constructed at runtime. Doing this requires a fair amount of C++11
- * features, which are not supported on all of our compilers. Set up
- * some defines and helper macros in an attempt to confine the ugliness
- * here, rather than scattering it all about the file. The important
- * features are:
- *
- * - constexpr;
- * - defaulted functions;
- * - C99-style designated initializers.
- */
-#if defined(__clang__)
-# if __has_feature(cxx_constexpr) && __has_feature(cxx_defaulted_functions)
-# define JS_VALUE_IS_CONSTEXPR
-# endif
-#elif defined(__GNUC__)
-/*
- * We need 4.5 for defaulted functions, 4.6 for constexpr, 4.7 because 4.6
- * doesn't understand |(X) { .field = ... }| syntax, and 4.7.3 because
- * versions prior to that have bugs in the C++ front-end that cause crashes.
- */
-# if MOZ_GCC_VERSION_AT_LEAST(4, 7, 3)
-# define JS_VALUE_IS_CONSTEXPR
-# endif
-#endif
-
-#if defined(JS_VALUE_IS_CONSTEXPR)
-# define JS_RETURN_LAYOUT_FROM_BITS(BITS) \
- return (jsval_layout) { .asBits = (BITS) }
-# define JS_VALUE_CONSTEXPR MOZ_CONSTEXPR
-# define JS_VALUE_CONSTEXPR_VAR MOZ_CONSTEXPR_VAR
-#else
-# define JS_RETURN_LAYOUT_FROM_BITS(BITS) \
- jsval_layout l; \
- l.asBits = (BITS); \
- return l;
-# define JS_VALUE_CONSTEXPR
-# define JS_VALUE_CONSTEXPR_VAR const
-#endif
-
-struct Value {
- jsval_layout data;
-};
diff --git a/libbindgen/tests/headers/keywords.h b/libbindgen/tests/headers/keywords.h
deleted file mode 100644
index 8699ce5f..00000000
--- a/libbindgen/tests/headers/keywords.h
+++ /dev/null
@@ -1,49 +0,0 @@
-int u8;
-int u16;
-int u32;
-int u64;
-int i8;
-int i16;
-int i32;
-int i64;
-int f32;
-int f64;
-int usize;
-int isize;
-int as;
-int box;
-int crate;
-int false;
-int fn;
-int impl;
-int in;
-int let;
-int loop;
-int match;
-int mod;
-int move;
-int mut;
-int pub;
-int ref;
-int self;
-int Self;
-int super;
-int trait;
-int true;
-int type;
-int unsafe;
-int use;
-int where;
-int abstract;
-int alignof;
-int become;
-int final;
-int macro;
-int offsetof;
-int override;
-int priv;
-int proc;
-int pure;
-int unsized;
-int virtual;
-int yield;
diff --git a/libbindgen/tests/headers/macro-expr-basic.h b/libbindgen/tests/headers/macro-expr-basic.h
deleted file mode 100644
index d2de7fdf..00000000
--- a/libbindgen/tests/headers/macro-expr-basic.h
+++ /dev/null
@@ -1,14 +0,0 @@
-#define FOO 1
-#define BAR 4
-#define BAZ (FOO + BAR)
-
-#define MIN (1 << 63)
-
-#define BARR (1 << 0)
-#define BAZZ ((1 << 1) + BAZ)
-#define I_RAN_OUT_OF_DUMB_NAMES (BARR | BAZZ)
-
-/* I haz a comment */
-#define HAZ_A_COMMENT BARR
-
-#define HAZ_A_COMMENT_INSIDE (/* comment for real */ BARR + FOO)
diff --git a/libbindgen/tests/headers/macro-redef.h b/libbindgen/tests/headers/macro-redef.h
deleted file mode 100644
index 0180d2ab..00000000
--- a/libbindgen/tests/headers/macro-redef.h
+++ /dev/null
@@ -1,5 +0,0 @@
-#define FOO 4
-#define BAR (1 + FOO)
-#undef FOO
-#define FOO 5
-#define BAZ (1 + FOO)
diff --git a/libbindgen/tests/headers/macro_const.h b/libbindgen/tests/headers/macro_const.h
deleted file mode 100644
index c28a3f6b..00000000
--- a/libbindgen/tests/headers/macro_const.h
+++ /dev/null
@@ -1,7 +0,0 @@
-#define foo "bar"
-#define CHAR 'b'
-#define CHARR '\0'
-#define FLOAT 5.09f
-#define FLOAT_EXPR (5 / 1000.0f)
-
-#define INVALID_UTF8 "\xf0\x28\x8c\x28"
diff --git a/libbindgen/tests/headers/maddness-is-avoidable.hpp b/libbindgen/tests/headers/maddness-is-avoidable.hpp
deleted file mode 100644
index 46d7495e..00000000
--- a/libbindgen/tests/headers/maddness-is-avoidable.hpp
+++ /dev/null
@@ -1,9 +0,0 @@
-// bindgen-flags: --blacklist-type RefPtr_Proxy_member_function
-
-template<typename T>
-class RefPtr {
- template<typename R, typename... Args>
- class Proxy {
- typedef R (T::*member_function)(Args...);
- };
-};
diff --git a/libbindgen/tests/headers/method-mangling.hpp b/libbindgen/tests/headers/method-mangling.hpp
deleted file mode 100644
index 0dac4975..00000000
--- a/libbindgen/tests/headers/method-mangling.hpp
+++ /dev/null
@@ -1,5 +0,0 @@
-
-class Foo {
-public:
- int type();
-};
diff --git a/libbindgen/tests/headers/module-whitelisted.hpp b/libbindgen/tests/headers/module-whitelisted.hpp
deleted file mode 100644
index f41e874e..00000000
--- a/libbindgen/tests/headers/module-whitelisted.hpp
+++ /dev/null
@@ -1,2 +0,0 @@
-// bindgen-flags: --enable-cxx-namespaces
-struct Test {};
diff --git a/libbindgen/tests/headers/msvc-no-usr.hpp b/libbindgen/tests/headers/msvc-no-usr.hpp
deleted file mode 100644
index b15e49f5..00000000
--- a/libbindgen/tests/headers/msvc-no-usr.hpp
+++ /dev/null
@@ -1,8 +0,0 @@
-
-typedef unsigned long long size_t;
-
-class A {
- const size_t foo;
-
- A() : foo(5) {}
-};
diff --git a/libbindgen/tests/headers/multiple-inherit-empty-correct-layout.hpp b/libbindgen/tests/headers/multiple-inherit-empty-correct-layout.hpp
deleted file mode 100644
index 1e2b133a..00000000
--- a/libbindgen/tests/headers/multiple-inherit-empty-correct-layout.hpp
+++ /dev/null
@@ -1,3 +0,0 @@
-struct Foo {};
-struct Bar {};
-struct Baz : public Foo, public Bar {};
diff --git a/libbindgen/tests/headers/mutable.hpp b/libbindgen/tests/headers/mutable.hpp
deleted file mode 100644
index b61a1031..00000000
--- a/libbindgen/tests/headers/mutable.hpp
+++ /dev/null
@@ -1,14 +0,0 @@
-class C {
- mutable int m_member;
- int m_other;
-};
-
-class NonCopiable {
- mutable int m_member;
-
- ~NonCopiable() {};
-};
-
-class NonCopiableWithNonCopiableMutableMember {
- mutable NonCopiable m_member;
-};
diff --git a/libbindgen/tests/headers/namespace.hpp b/libbindgen/tests/headers/namespace.hpp
deleted file mode 100644
index 65788539..00000000
--- a/libbindgen/tests/headers/namespace.hpp
+++ /dev/null
@@ -1,47 +0,0 @@
-// bindgen-flags: --enable-cxx-namespaces
-
-void top_level();
-
-namespace whatever {
- typedef int whatever_int_t;
-
- void in_whatever();
-}
-
-namespace {
- namespace empty {}
-
- void foo();
- struct A {
- whatever::whatever_int_t b;
- public:
- int lets_hope_this_works();
- };
-}
-
-template<typename T>
-class C: public A {
- T m_c;
- T* m_c_ptr;
- T m_c_arr[10];
-};
-
-
-template<>
-class C<int>;
-
-
-namespace w {
- typedef unsigned int whatever_int_t;
-
- template<typename T>
- class D {
- C<T> m_c;
- };
-
- whatever_int_t heh(); // this should return w::whatever_int_t, and not whatever::whatever_int_t
-
- C<int> foo();
-
- C<float> barr(); // <- This is the problematic one
-}
diff --git a/libbindgen/tests/headers/nested.hpp b/libbindgen/tests/headers/nested.hpp
deleted file mode 100644
index 299e1768..00000000
--- a/libbindgen/tests/headers/nested.hpp
+++ /dev/null
@@ -1,15 +0,0 @@
-
-class Calc {
- int w;
-};
-
-class Test {
-public:
- struct Size;
- friend struct Size;
- struct Size {
- struct Dimension : public Calc {
- };
- Dimension mWidth, mHeight;
- };
-};
diff --git a/libbindgen/tests/headers/nested_vtable.hpp b/libbindgen/tests/headers/nested_vtable.hpp
deleted file mode 100644
index 87d6ce1f..00000000
--- a/libbindgen/tests/headers/nested_vtable.hpp
+++ /dev/null
@@ -1,8 +0,0 @@
-class nsISupports {
-public:
- virtual nsISupports* QueryInterface();
-};
-
-class nsIRunnable : public nsISupports {};
-
-class Runnable : public nsIRunnable {};
diff --git a/libbindgen/tests/headers/nested_within_namespace.hpp b/libbindgen/tests/headers/nested_within_namespace.hpp
deleted file mode 100644
index a9b7c1ec..00000000
--- a/libbindgen/tests/headers/nested_within_namespace.hpp
+++ /dev/null
@@ -1,15 +0,0 @@
-// bindgen-flags: --enable-cxx-namespaces
-
-namespace foo {
- class Bar {
- int foo;
-
- class Baz {
- int foo;
- };
- };
-
- class Baz {
- int baz;
- };
-}
diff --git a/libbindgen/tests/headers/no-std.h b/libbindgen/tests/headers/no-std.h
deleted file mode 100644
index 7bee9657..00000000
--- a/libbindgen/tests/headers/no-std.h
+++ /dev/null
@@ -1,5 +0,0 @@
-// bindgen-flags: --ctypes-prefix "libc" --use-core --raw-line "#![no_std]" --raw-line "mod libc { pub type c_int = i32; pub enum c_void {} }"
-struct foo {
- int a, b;
- void* bar;
-};
diff --git a/libbindgen/tests/headers/no_copy.hpp b/libbindgen/tests/headers/no_copy.hpp
deleted file mode 100644
index 349e428e..00000000
--- a/libbindgen/tests/headers/no_copy.hpp
+++ /dev/null
@@ -1,6 +0,0 @@
-
-/** <div rustbindgen nocopy></div> */
-template<typename T>
-class CopiableButWait {
- int whatever;
-};
diff --git a/libbindgen/tests/headers/nsStyleAutoArray.hpp b/libbindgen/tests/headers/nsStyleAutoArray.hpp
deleted file mode 100644
index 950152c0..00000000
--- a/libbindgen/tests/headers/nsStyleAutoArray.hpp
+++ /dev/null
@@ -1,57 +0,0 @@
-
-template<typename T>
-class nsTArray {
- T* mBuff;
-};
-
-template<typename T>
-class nsStyleAutoArray
-{
-public:
- // This constructor places a single element in mFirstElement.
- enum WithSingleInitialElement { WITH_SINGLE_INITIAL_ELEMENT };
- explicit nsStyleAutoArray(WithSingleInitialElement) {}
- nsStyleAutoArray(const nsStyleAutoArray& aOther) { *this = aOther; }
- nsStyleAutoArray& operator=(const nsStyleAutoArray& aOther) {
- mFirstElement = aOther.mFirstElement;
- mOtherElements = aOther.mOtherElements;
- return *this;
- }
-
- bool operator==(const nsStyleAutoArray& aOther) const {
- return Length() == aOther.Length() &&
- mFirstElement == aOther.mFirstElement &&
- mOtherElements == aOther.mOtherElements;
- }
- bool operator!=(const nsStyleAutoArray& aOther) const {
- return !(*this == aOther);
- }
-
- unsigned long Length() const {
- return mOtherElements.Length() + 1;
- }
- const T& operator[](unsigned long aIndex) const {
- return aIndex == 0 ? mFirstElement : mOtherElements[aIndex - 1];
- }
- T& operator[](unsigned long aIndex) {
- return aIndex == 0 ? mFirstElement : mOtherElements[aIndex - 1];
- }
-
- void EnsureLengthAtLeast(unsigned long aMinLen) {
- if (aMinLen > 0) {
- mOtherElements.EnsureLengthAtLeast(aMinLen - 1);
- }
- }
-
- void SetLengthNonZero(unsigned long aNewLen) {
- mOtherElements.SetLength(aNewLen - 1);
- }
-
- void TruncateLengthNonZero(unsigned long aNewLen) {
- mOtherElements.TruncateLength(aNewLen - 1);
- }
-
-private:
- T mFirstElement;
- nsTArray<T> mOtherElements;
-};
diff --git a/libbindgen/tests/headers/only_bitfields.hpp b/libbindgen/tests/headers/only_bitfields.hpp
deleted file mode 100644
index 84db0586..00000000
--- a/libbindgen/tests/headers/only_bitfields.hpp
+++ /dev/null
@@ -1,5 +0,0 @@
-// bindgen-flags: --no-unstable-rust
-class C {
- bool a: 1;
- bool b: 7;
-};
diff --git a/libbindgen/tests/headers/opaque-tracing.hpp b/libbindgen/tests/headers/opaque-tracing.hpp
deleted file mode 100644
index 7356245e..00000000
--- a/libbindgen/tests/headers/opaque-tracing.hpp
+++ /dev/null
@@ -1,21 +0,0 @@
-// bindgen-flags: --opaque-type=.* --whitelist-function=foo
-
-class Container;
-
-// The whitelist tracing should reach the Container type, even though it's
-// marked as opaque.
-void foo(Container* c);
-
-template<typename T>
-class Wat {
- T foo;
-};
-
-class OtherOpaque {
- int bar;
-};
-
-class Container {
- Wat<int> bar;
- OtherOpaque baz;
-};
diff --git a/libbindgen/tests/headers/opaque_in_struct.hpp b/libbindgen/tests/headers/opaque_in_struct.hpp
deleted file mode 100644
index 3cffeb20..00000000
--- a/libbindgen/tests/headers/opaque_in_struct.hpp
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-/** <div rustbindgen opaque> */
-typedef struct opaque {
- int waht;
-} opaque;
-
-struct container {
- opaque contained;
-};
diff --git a/libbindgen/tests/headers/opaque_pointer.hpp b/libbindgen/tests/headers/opaque_pointer.hpp
deleted file mode 100644
index 53f8ce1f..00000000
--- a/libbindgen/tests/headers/opaque_pointer.hpp
+++ /dev/null
@@ -1,22 +0,0 @@
-
-/**
- * <div rustbindgen opaque></div>
- */
-struct OtherOpaque {
- int c;
-};
-
-/**
- * <div rustbindgen opaque></div>
- */
-template <typename T>
-struct Opaque {
- T whatever;
-};
-
-struct WithOpaquePtr {
- Opaque<int>* whatever;
- Opaque<float> other;
- OtherOpaque t;
-};
-
diff --git a/libbindgen/tests/headers/opaque_typedef.hpp b/libbindgen/tests/headers/opaque_typedef.hpp
deleted file mode 100644
index 25640738..00000000
--- a/libbindgen/tests/headers/opaque_typedef.hpp
+++ /dev/null
@@ -1,17 +0,0 @@
-// bindgen-flags: -- -std=c++11
-template<typename T>
-class RandomTemplate;
-
-template<int i>
-class Wat;
-
-template<int i>
-class Wat3;
-
-template<>
-class Wat3<3>;
-
-/** <div rustbindgen opaque></div> */
-typedef RandomTemplate<int> ShouldBeOpaque;
-
-typedef RandomTemplate<float> ShouldNotBeOpaque;
diff --git a/libbindgen/tests/headers/overflowed_enum.hpp b/libbindgen/tests/headers/overflowed_enum.hpp
deleted file mode 100644
index 1f2075a5..00000000
--- a/libbindgen/tests/headers/overflowed_enum.hpp
+++ /dev/null
@@ -1,12 +0,0 @@
-// bindgen-flags: -- -std=c++11 -Wno-narrowing
-
-enum Foo {
- BAP_ARM = 0x93fcb9,
- BAP_X86 = 0xb67eed,
- BAP_X86_64 = 0xba7b274f,
-};
-
-enum Bar: unsigned short {
- One = 1,
- Big = 65538,
-};
diff --git a/libbindgen/tests/headers/overloading.hpp b/libbindgen/tests/headers/overloading.hpp
deleted file mode 100644
index 3c2b0487..00000000
--- a/libbindgen/tests/headers/overloading.hpp
+++ /dev/null
@@ -1,9 +0,0 @@
-extern bool Evaluate(char r);
-extern bool Evaluate(int x, int y);
-
-namespace foo {
- extern void MyFunction();
-}
-namespace bar {
- extern void MyFunction();
-}
diff --git a/libbindgen/tests/headers/private.hpp b/libbindgen/tests/headers/private.hpp
deleted file mode 100644
index c0f3ce7f..00000000
--- a/libbindgen/tests/headers/private.hpp
+++ /dev/null
@@ -1,21 +0,0 @@
-
-struct HasPrivate {
- int mNotPrivate;
- /** <div rustbindgen private></div> */
- int mIsPrivate;
-};
-
-
-/** <div rustbindgen private></div> */
-struct VeryPrivate {
- int mIsPrivate;
- int mIsAlsoPrivate;
-};
-
-
-/** <div rustbindgen private></div> */
-struct ContradictPrivate {
- /** <div rustbindgen private="false"></div> */
- int mNotPrivate;
- int mIsPrivate;
-};
diff --git a/libbindgen/tests/headers/public-dtor.hpp b/libbindgen/tests/headers/public-dtor.hpp
deleted file mode 100644
index 5d4fb592..00000000
--- a/libbindgen/tests/headers/public-dtor.hpp
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-namespace cv {
-class String {
-public:
- ~String();
-};
-
-
-inline
-String::~String()
-{
-}
-
-}
diff --git a/libbindgen/tests/headers/redeclaration.hpp b/libbindgen/tests/headers/redeclaration.hpp
deleted file mode 100644
index d536b158..00000000
--- a/libbindgen/tests/headers/redeclaration.hpp
+++ /dev/null
@@ -1,7 +0,0 @@
-extern "C" {
- void foo();
-}
-
-extern "C" {
- void foo();
-}
diff --git a/libbindgen/tests/headers/ref_argument_array.hpp b/libbindgen/tests/headers/ref_argument_array.hpp
deleted file mode 100644
index dc73fd62..00000000
--- a/libbindgen/tests/headers/ref_argument_array.hpp
+++ /dev/null
@@ -1,6 +0,0 @@
-
-#define NSID_LENGTH 10
-class nsID {
-public:
- virtual void ToProvidedString(char (&aDest)[NSID_LENGTH]) = 0;
-};
diff --git a/libbindgen/tests/headers/reparented_replacement.hpp b/libbindgen/tests/headers/reparented_replacement.hpp
deleted file mode 100644
index 4ac2bf03..00000000
--- a/libbindgen/tests/headers/reparented_replacement.hpp
+++ /dev/null
@@ -1,16 +0,0 @@
-// bindgen-flags: --enable-cxx-namespaces
-
-namespace foo {
- struct Bar {
- int baz;
- };
-}
-
-namespace bar {
- /// <div rustbindgen replaces="foo::Bar"></div>
- struct Bar_Replacement {
- int bazz;
- };
-};
-
-typedef foo::Bar ReferencesBar;
diff --git a/libbindgen/tests/headers/replace_template_alias.hpp b/libbindgen/tests/headers/replace_template_alias.hpp
deleted file mode 100644
index c325b5a3..00000000
--- a/libbindgen/tests/headers/replace_template_alias.hpp
+++ /dev/null
@@ -1,23 +0,0 @@
-// bindgen-flags: -- --std=c++14
-
-namespace JS {
-namespace detail {
-
-/// Notice how this doesn't use T.
-template <typename T>
-using MaybeWrapped = int;
-
-}
-
-template <typename T>
-class Rooted {
- detail::MaybeWrapped<T> ptr;
-};
-
-}
-
-/// But the replacement type does use T!
-///
-/// <div rustbindgen replaces="JS::detail::MaybeWrapped" />
-template <typename T>
-using replaces_MaybeWrapped = T;
diff --git a/libbindgen/tests/headers/replace_use.hpp b/libbindgen/tests/headers/replace_use.hpp
deleted file mode 100644
index de44eb19..00000000
--- a/libbindgen/tests/headers/replace_use.hpp
+++ /dev/null
@@ -1,15 +0,0 @@
-template<typename T>
-struct nsTArray {
- int x;
-};
-/**
- * <div rustbindgen replaces="nsTArray"></div>
- */
-template<typename T>
-struct nsTArray_Simple {
- unsigned int y;
-};
-
-struct Test {
- nsTArray<long> a;
-};
diff --git a/libbindgen/tests/headers/replaces_double.hpp b/libbindgen/tests/headers/replaces_double.hpp
deleted file mode 100644
index 1a78b0d9..00000000
--- a/libbindgen/tests/headers/replaces_double.hpp
+++ /dev/null
@@ -1,20 +0,0 @@
-// bindgen-flags: --blacklist-type Wrapper -- --std=c++11
-
-template<typename T>
-struct Wrapper {
- struct Wrapped {
- T t;
- };
- using Type = Wrapped;
-};
-
-template<typename T>
-class Rooted {
- using MaybeWrapped = typename Wrapper<T>::Type;
- MaybeWrapped ptr;
-
- /**
- * <div rustbindgen replaces="Rooted_MaybeWrapped"></div>
- */
- using MaybeWrapped_simple = T;
-};
diff --git a/libbindgen/tests/headers/resolved_type_def_function.h b/libbindgen/tests/headers/resolved_type_def_function.h
deleted file mode 100644
index 139b8c3e..00000000
--- a/libbindgen/tests/headers/resolved_type_def_function.h
+++ /dev/null
@@ -1,2 +0,0 @@
-typedef void (FuncType) ();
-extern FuncType Func; \ No newline at end of file
diff --git a/libbindgen/tests/headers/same_struct_name_in_different_namespaces.hpp b/libbindgen/tests/headers/same_struct_name_in_different_namespaces.hpp
deleted file mode 100644
index fe685845..00000000
--- a/libbindgen/tests/headers/same_struct_name_in_different_namespaces.hpp
+++ /dev/null
@@ -1,12 +0,0 @@
-namespace JS {
-
- struct Zone;
-
- namespace shadow {
-
- struct Zone {
- int x;
- int y;
- };
- }
-}
diff --git a/libbindgen/tests/headers/size_t_template.hpp b/libbindgen/tests/headers/size_t_template.hpp
deleted file mode 100644
index 6045c698..00000000
--- a/libbindgen/tests/headers/size_t_template.hpp
+++ /dev/null
@@ -1,8 +0,0 @@
-template<typename T, unsigned long N>
-class Array {
- T inner[N];
-};
-
-class C {
- Array<int, 3> arr;
-};
diff --git a/libbindgen/tests/headers/struct_containing_forward_declared_struct.h b/libbindgen/tests/headers/struct_containing_forward_declared_struct.h
deleted file mode 100644
index d38aca2f..00000000
--- a/libbindgen/tests/headers/struct_containing_forward_declared_struct.h
+++ /dev/null
@@ -1,7 +0,0 @@
-struct a {
- struct b* val_a;
-};
-
-struct b {
- int val_b;
-};
diff --git a/libbindgen/tests/headers/struct_with_anon_struct.h b/libbindgen/tests/headers/struct_with_anon_struct.h
deleted file mode 100644
index 1617d7a8..00000000
--- a/libbindgen/tests/headers/struct_with_anon_struct.h
+++ /dev/null
@@ -1,6 +0,0 @@
-struct foo {
- struct {
- int a;
- int b;
- } bar;
-};
diff --git a/libbindgen/tests/headers/struct_with_anon_struct_array.h b/libbindgen/tests/headers/struct_with_anon_struct_array.h
deleted file mode 100644
index 9ea977e8..00000000
--- a/libbindgen/tests/headers/struct_with_anon_struct_array.h
+++ /dev/null
@@ -1,10 +0,0 @@
-struct foo {
- struct {
- int a;
- int b;
- } bar[2];
- struct {
- int a;
- int b;
- } baz[2][3][4];
-};
diff --git a/libbindgen/tests/headers/struct_with_anon_struct_pointer.h b/libbindgen/tests/headers/struct_with_anon_struct_pointer.h
deleted file mode 100644
index 0c486d84..00000000
--- a/libbindgen/tests/headers/struct_with_anon_struct_pointer.h
+++ /dev/null
@@ -1,6 +0,0 @@
-struct foo {
- struct {
- int a;
- int b;
- } *bar;
-};
diff --git a/libbindgen/tests/headers/struct_with_anon_union.h b/libbindgen/tests/headers/struct_with_anon_union.h
deleted file mode 100644
index 3a92b940..00000000
--- a/libbindgen/tests/headers/struct_with_anon_union.h
+++ /dev/null
@@ -1,6 +0,0 @@
-struct foo {
- union {
- unsigned int a;
- unsigned short b;
- } bar;
-};
diff --git a/libbindgen/tests/headers/struct_with_anon_unnamed_struct.h b/libbindgen/tests/headers/struct_with_anon_unnamed_struct.h
deleted file mode 100644
index f8ac4225..00000000
--- a/libbindgen/tests/headers/struct_with_anon_unnamed_struct.h
+++ /dev/null
@@ -1,6 +0,0 @@
-struct foo {
- struct {
- unsigned int a;
- unsigned int b;
- };
-};
diff --git a/libbindgen/tests/headers/struct_with_anon_unnamed_union.h b/libbindgen/tests/headers/struct_with_anon_unnamed_union.h
deleted file mode 100644
index 7158e727..00000000
--- a/libbindgen/tests/headers/struct_with_anon_unnamed_union.h
+++ /dev/null
@@ -1,6 +0,0 @@
-struct foo {
- union {
- unsigned int a;
- unsigned short b;
- };
-};
diff --git a/libbindgen/tests/headers/struct_with_bitfields.h b/libbindgen/tests/headers/struct_with_bitfields.h
deleted file mode 100644
index 107fb136..00000000
--- a/libbindgen/tests/headers/struct_with_bitfields.h
+++ /dev/null
@@ -1,13 +0,0 @@
-// bindgen-flags: --no-unstable-rust
-struct bitfield {
- unsigned short
- a :1,
- b :1,
- c :1,
- :1,
- :2,
- d :2;
- int e;
- unsigned int f : 2;
- unsigned int g : 32;
-};
diff --git a/libbindgen/tests/headers/struct_with_derive_debug.h b/libbindgen/tests/headers/struct_with_derive_debug.h
deleted file mode 100644
index 98ba1b3d..00000000
--- a/libbindgen/tests/headers/struct_with_derive_debug.h
+++ /dev/null
@@ -1,15 +0,0 @@
-struct LittleArray {
- int a[32];
-};
-
-struct BigArray{
- int a[33];
-};
-
-struct WithLittleArray {
- struct LittleArray a;
-};
-
-struct WithBigArray {
- struct BigArray a;
-};
diff --git a/libbindgen/tests/headers/struct_with_nesting.h b/libbindgen/tests/headers/struct_with_nesting.h
deleted file mode 100644
index 9d7fa176..00000000
--- a/libbindgen/tests/headers/struct_with_nesting.h
+++ /dev/null
@@ -1,17 +0,0 @@
-struct foo {
- unsigned int a;
- union {
- unsigned int b;
- struct {
- unsigned short c1;
- unsigned short c2;
- };
-
- struct {
- unsigned char d1;
- unsigned char d2;
- unsigned char d3;
- unsigned char d4;
- };
- };
-};
diff --git a/libbindgen/tests/headers/struct_with_packing.h b/libbindgen/tests/headers/struct_with_packing.h
deleted file mode 100644
index 1b9fe131..00000000
--- a/libbindgen/tests/headers/struct_with_packing.h
+++ /dev/null
@@ -1,4 +0,0 @@
-struct a {
- char b;
- short c;
-} __attribute__((packed));
diff --git a/libbindgen/tests/headers/struct_with_struct.h b/libbindgen/tests/headers/struct_with_struct.h
deleted file mode 100644
index 78b1cc81..00000000
--- a/libbindgen/tests/headers/struct_with_struct.h
+++ /dev/null
@@ -1,6 +0,0 @@
-struct foo {
- struct {
- unsigned int x;
- unsigned int y;
- } bar;
-};
diff --git a/libbindgen/tests/headers/struct_with_typedef_template_arg.hpp b/libbindgen/tests/headers/struct_with_typedef_template_arg.hpp
deleted file mode 100644
index 7fed21ab..00000000
--- a/libbindgen/tests/headers/struct_with_typedef_template_arg.hpp
+++ /dev/null
@@ -1,4 +0,0 @@
-template<typename T, typename ...Args>
-struct Proxy {
- typedef void (*foo)(T* bar);
-};
diff --git a/libbindgen/tests/headers/template.hpp b/libbindgen/tests/headers/template.hpp
deleted file mode 100644
index c13643c3..00000000
--- a/libbindgen/tests/headers/template.hpp
+++ /dev/null
@@ -1,144 +0,0 @@
-template<typename T, typename U> class Foo {
- T m_member;
- T* m_member_ptr;
- T m_member_arr[1];
-};
-
-void bar(Foo<int, int> foo);
-
-template<typename T>
-class D {
- typedef Foo<int, int> MyFoo;
-
- MyFoo m_foo;
-
- template<typename Z>
- class U {
- MyFoo m_nested_foo;
- Z m_baz;
- };
-};
-
-template<typename T>
-class Rooted {
- T* prev;
- Rooted<void*>* next;
- T ptr;
-};
-
-class RootedContainer {
- Rooted<void*> root;
-};
-
-template<typename T>
-class WithDtor;
-
-typedef WithDtor<int> WithDtorIntFwd;
-
-template<typename T>
-class WithDtor {
- T member;
- ~WithDtor() {}
-};
-
-class PODButContainsDtor {
- WithDtorIntFwd member;
-};
-
-
-/** <div rustbindgen opaque> */
-template<typename T>
-class Opaque {
- T member;
-};
-
-class POD {
- Opaque<int> opaque_member;
-};
-
-/**
- * <div rustbindgen replaces="NestedReplaced"></div>
- */
-template<typename T>
-class Nested {
- T* buff;
-};
-
-template<typename T, typename U>
-class NestedBase {
- T* buff;
-};
-
-template<typename T>
-class NestedReplaced: public NestedBase<T, int> {
-};
-
-template<typename T>
-class Incomplete;
-
-template<typename T>
-class NestedContainer {
- T c;
-private:
- NestedReplaced<T> nested;
- Incomplete<T> inc;
-};
-
-template<typename T>
-class Incomplete {
- T d;
-};
-
-class Untemplated {};
-
-template<typename T>
-class Templated {
- Untemplated m_untemplated;
-};
-
-/**
- * If the replacement doesn't happen at the parse level the container would be
- * copy and the replacement wouldn't, so this wouldn't compile.
- *
- * <div rustbindgen replaces="ReplacedWithoutDestructor"></div>
- */
-template<typename T>
-class ReplacedWithDestructor {
- T* buff;
- ~ReplacedWithDestructor() {};
-};
-
-template<typename T>
-class ReplacedWithoutDestructor {
- T* buff;
-};
-
-template<typename T>
-class ReplacedWithoutDestructorFwd;
-
-template<typename T>
-class ShouldNotBeCopiable {
- ReplacedWithoutDestructor<T> m_member;
-};
-
-template<typename U>
-class ShouldNotBeCopiableAsWell {
- ReplacedWithoutDestructorFwd<U> m_member;
-};
-
-/**
- * If the replacement doesn't happen at the parse level the container would be
- * copy and the replacement wouldn't, so this wouldn't compile.
- *
- * <div rustbindgen replaces="ReplacedWithoutDestructorFwd"></div>
- */
-template<typename T>
-class ReplacedWithDestructorDeclaredAfter {
- T* buff;
- ~ReplacedWithDestructorDeclaredAfter() {};
-};
-
-template<typename T>
-class TemplateWithVar {
- static T var = 0;
-};
diff --git a/libbindgen/tests/headers/template_alias.hpp b/libbindgen/tests/headers/template_alias.hpp
deleted file mode 100644
index 646d9f40..00000000
--- a/libbindgen/tests/headers/template_alias.hpp
+++ /dev/null
@@ -1,13 +0,0 @@
-// bindgen-flags: -- -std=c++14
-
-namespace JS {
-namespace detail {
- template <typename T>
- using Wrapped = T;
-}
-
-template <typename T>
-struct Rooted {
- detail::Wrapped<T> ptr;
-};
-}
diff --git a/libbindgen/tests/headers/template_alias_basic.hpp b/libbindgen/tests/headers/template_alias_basic.hpp
deleted file mode 100644
index 964f6e27..00000000
--- a/libbindgen/tests/headers/template_alias_basic.hpp
+++ /dev/null
@@ -1,4 +0,0 @@
-// bindgen-flags: -- -std=c++11
-
-template<typename T>
-using Wrapped = T;
diff --git a/libbindgen/tests/headers/template_alias_namespace.hpp b/libbindgen/tests/headers/template_alias_namespace.hpp
deleted file mode 100644
index bd637166..00000000
--- a/libbindgen/tests/headers/template_alias_namespace.hpp
+++ /dev/null
@@ -1,13 +0,0 @@
-// bindgen-flags: --enable-cxx-namespaces -- -std=c++14
-
-namespace JS {
-namespace detail {
- template <typename T>
- using Wrapped = T;
-}
-
-template <typename T>
-struct Rooted {
- detail::Wrapped<T> ptr;
-};
-}
diff --git a/libbindgen/tests/headers/template_typedef_transitive_param.hpp b/libbindgen/tests/headers/template_typedef_transitive_param.hpp
deleted file mode 100644
index 2269ac36..00000000
--- a/libbindgen/tests/headers/template_typedef_transitive_param.hpp
+++ /dev/null
@@ -1,7 +0,0 @@
-template<typename T>
-struct Wrapper {
- struct Wrapped {
- T t;
- };
- using Type = Wrapped;
-};
diff --git a/libbindgen/tests/headers/template_typedefs.hpp b/libbindgen/tests/headers/template_typedefs.hpp
deleted file mode 100644
index 5e13dcd8..00000000
--- a/libbindgen/tests/headers/template_typedefs.hpp
+++ /dev/null
@@ -1,8 +0,0 @@
-typedef void (*foo)(int);
-
-template<typename T, typename U>
-class Foo {
- typedef T Char;
- typedef Char* FooPtrTypedef;
- typedef bool (*nsCOMArrayEnumFunc)(T* aElement, void* aData);
-};
diff --git a/libbindgen/tests/headers/templateref_opaque.hpp b/libbindgen/tests/headers/templateref_opaque.hpp
deleted file mode 100644
index ca154c34..00000000
--- a/libbindgen/tests/headers/templateref_opaque.hpp
+++ /dev/null
@@ -1,11 +0,0 @@
-
-namespace detail {
-template<typename T>
-struct PointerType {
- typedef T* Type;
-};
-}
-template<typename T>
-class UniquePtr {
- typedef typename detail::PointerType<T> Pointer;
-};
diff --git a/libbindgen/tests/headers/type-referenced-by-whitelisted-function.h b/libbindgen/tests/headers/type-referenced-by-whitelisted-function.h
deleted file mode 100644
index 86b00303..00000000
--- a/libbindgen/tests/headers/type-referenced-by-whitelisted-function.h
+++ /dev/null
@@ -1,7 +0,0 @@
-// bindgen-flags: --whitelist-function dl_iterate_phdr
-
-struct dl_phdr_info {
- int x;
-};
-
-int dl_iterate_phdr(struct dl_phdr_info *);
diff --git a/libbindgen/tests/headers/type_alias_empty.hpp b/libbindgen/tests/headers/type_alias_empty.hpp
deleted file mode 100644
index f0760c8f..00000000
--- a/libbindgen/tests/headers/type_alias_empty.hpp
+++ /dev/null
@@ -1,10 +0,0 @@
-// bindgen-flags: --whitelist-type bool_constant -- -std=c++11
-
-// NB: The --whitelist-type is done to trigger the traversal of the types on
-// codegen in order to trigger #67.
-
-template<typename T, T Val>
-struct integral_constant {};
-
-template<bool B>
-using bool_constant = integral_constant<bool, B>;
diff --git a/libbindgen/tests/headers/type_alias_partial_template_especialization.hpp b/libbindgen/tests/headers/type_alias_partial_template_especialization.hpp
deleted file mode 100644
index dfc36786..00000000
--- a/libbindgen/tests/headers/type_alias_partial_template_especialization.hpp
+++ /dev/null
@@ -1,7 +0,0 @@
-// bindgen-flags: -- -std=c++14
-template <typename A> using MaybeWrapped = A;
-
-template<class T>
-class Rooted {
- MaybeWrapped<T> ptr;
-};
diff --git a/libbindgen/tests/headers/type_alias_template_specialized.hpp b/libbindgen/tests/headers/type_alias_template_specialized.hpp
deleted file mode 100644
index a2d32b56..00000000
--- a/libbindgen/tests/headers/type_alias_template_specialized.hpp
+++ /dev/null
@@ -1,9 +0,0 @@
-// bindgen-flags: --whitelist-type Rooted -- -std=c++14
-
-template <typename a> using MaybeWrapped = a;
-class Rooted {
- MaybeWrapped<int> ptr;
-};
-
-/// <div rustbindgen replaces="MaybeWrapped"></div>
-template <typename a> using replaces_MaybeWrapped = a;
diff --git a/libbindgen/tests/headers/typedefd-array-as-function-arg.h b/libbindgen/tests/headers/typedefd-array-as-function-arg.h
deleted file mode 100644
index 93790591..00000000
--- a/libbindgen/tests/headers/typedefd-array-as-function-arg.h
+++ /dev/null
@@ -1,3 +0,0 @@
-// foo.h
-typedef float myVector3[3];
-void modifyVectorFunc(myVector3 v);
diff --git a/libbindgen/tests/headers/typeref.hpp b/libbindgen/tests/headers/typeref.hpp
deleted file mode 100644
index b94c98ef..00000000
--- a/libbindgen/tests/headers/typeref.hpp
+++ /dev/null
@@ -1,28 +0,0 @@
-struct nsFoo;
-
-namespace mozilla {
-
-struct FragmentOrURL { bool mIsLocalRef; };
-struct Position { };
-
-} // namespace mozilla
-
-class Bar {
- nsFoo* mFoo;
-};
-
-namespace mozilla {
-
-template<typename ReferenceBox>
-struct StyleShapeSource {
- union {
- Position* mPosition;
- FragmentOrURL* mFragmentOrURL;
- };
-};
-
-} // namespace mozilla
-
-struct nsFoo {
- mozilla::StyleShapeSource<int> mBar;
-};
diff --git a/libbindgen/tests/headers/union-in-ns.hpp b/libbindgen/tests/headers/union-in-ns.hpp
deleted file mode 100644
index 68b8f72d..00000000
--- a/libbindgen/tests/headers/union-in-ns.hpp
+++ /dev/null
@@ -1,5 +0,0 @@
-// bindgen-flags: --enable-cxx-namespaces
-
-union bar {
- int baz;
-};
diff --git a/libbindgen/tests/headers/union_dtor.hpp b/libbindgen/tests/headers/union_dtor.hpp
deleted file mode 100644
index 399dc89d..00000000
--- a/libbindgen/tests/headers/union_dtor.hpp
+++ /dev/null
@@ -1,5 +0,0 @@
-union UnionWithDtor {
- ~UnionWithDtor();
- int mFoo;
- void* mBar;
-};
diff --git a/libbindgen/tests/headers/union_fields.hpp b/libbindgen/tests/headers/union_fields.hpp
deleted file mode 100644
index aec3a7fd..00000000
--- a/libbindgen/tests/headers/union_fields.hpp
+++ /dev/null
@@ -1,5 +0,0 @@
-typedef union {
- int mInt;
- float mFloat;
- void* mPointer;
-} nsStyleUnion;
diff --git a/libbindgen/tests/headers/union_template.hpp b/libbindgen/tests/headers/union_template.hpp
deleted file mode 100644
index 0d0a9bb3..00000000
--- a/libbindgen/tests/headers/union_template.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-template<typename T>
-struct NastyStruct {
- bool mIsSome;
- union {
- void* mFoo;
- unsigned long mDummy;
- } mStorage;
-
- union {
- short wat;
- int* wut;
- };
-};
-
-template<typename T>
-union Whatever {
- void* mTPtr;
- int mInt;
-};
diff --git a/libbindgen/tests/headers/union_with_anon_struct.h b/libbindgen/tests/headers/union_with_anon_struct.h
deleted file mode 100644
index 7f8dec95..00000000
--- a/libbindgen/tests/headers/union_with_anon_struct.h
+++ /dev/null
@@ -1,6 +0,0 @@
-union foo {
- struct {
- unsigned int a;
- unsigned int b;
- } bar;
-};
diff --git a/libbindgen/tests/headers/union_with_anon_struct_bitfield.h b/libbindgen/tests/headers/union_with_anon_struct_bitfield.h
deleted file mode 100644
index 24c7dce8..00000000
--- a/libbindgen/tests/headers/union_with_anon_struct_bitfield.h
+++ /dev/null
@@ -1,8 +0,0 @@
-// bindgen-flags: --no-unstable-rust
-union foo {
- int a;
- struct {
- int b : 7;
- int c : 25;
- };
-};
diff --git a/libbindgen/tests/headers/union_with_anon_union.h b/libbindgen/tests/headers/union_with_anon_union.h
deleted file mode 100644
index 212431b8..00000000
--- a/libbindgen/tests/headers/union_with_anon_union.h
+++ /dev/null
@@ -1,6 +0,0 @@
-union foo {
- union {
- unsigned int a;
- unsigned short b;
- } bar;
-};
diff --git a/libbindgen/tests/headers/union_with_anon_unnamed_struct.h b/libbindgen/tests/headers/union_with_anon_unnamed_struct.h
deleted file mode 100644
index 79558049..00000000
--- a/libbindgen/tests/headers/union_with_anon_unnamed_struct.h
+++ /dev/null
@@ -1,9 +0,0 @@
-union pixel {
- unsigned int rgba;
- struct {
- unsigned char r;
- unsigned char g;
- unsigned char b;
- unsigned char a;
- };
-};
diff --git a/libbindgen/tests/headers/union_with_anon_unnamed_union.h b/libbindgen/tests/headers/union_with_anon_unnamed_union.h
deleted file mode 100644
index 7580771a..00000000
--- a/libbindgen/tests/headers/union_with_anon_unnamed_union.h
+++ /dev/null
@@ -1,7 +0,0 @@
-union foo {
- unsigned int a;
- union {
- unsigned short b;
- unsigned char c;
- };
-};
diff --git a/libbindgen/tests/headers/union_with_big_member.h b/libbindgen/tests/headers/union_with_big_member.h
deleted file mode 100644
index 6347d6ca..00000000
--- a/libbindgen/tests/headers/union_with_big_member.h
+++ /dev/null
@@ -1,14 +0,0 @@
-union WithBigArray {
- int a;
- int b[33];
-};
-
-union WithBigArray2 {
- int a;
- char b[33];
-};
-
-union WithBigMember {
- int a;
- union WithBigArray b;
-};
diff --git a/libbindgen/tests/headers/union_with_nesting.h b/libbindgen/tests/headers/union_with_nesting.h
deleted file mode 100644
index cd907d57..00000000
--- a/libbindgen/tests/headers/union_with_nesting.h
+++ /dev/null
@@ -1,14 +0,0 @@
-union foo {
- unsigned int a;
- struct {
- union {
- unsigned short b1;
- unsigned short b2;
- };
-
- union {
- unsigned short c1;
- unsigned short c2;
- };
- };
-};
diff --git a/libbindgen/tests/headers/unknown_attr.h b/libbindgen/tests/headers/unknown_attr.h
deleted file mode 100644
index f87e9f0b..00000000
--- a/libbindgen/tests/headers/unknown_attr.h
+++ /dev/null
@@ -1,6 +0,0 @@
-typedef struct {
- long long __clang_max_align_nonce1
- __attribute__((__aligned__(__alignof__(long long))));
- long double __clang_max_align_nonce2
- __attribute__((__aligned__(__alignof__(long double))));
-} max_align_t;
diff --git a/libbindgen/tests/headers/use-core.h b/libbindgen/tests/headers/use-core.h
deleted file mode 100644
index 42bb10d9..00000000
--- a/libbindgen/tests/headers/use-core.h
+++ /dev/null
@@ -1,8 +0,0 @@
-// bindgen-flags: --use-core --raw-line "extern crate core;"
-
-struct foo {
- int a, b;
- void* bar;
-};
-
-typedef void (*fooFunction)(int bar);
diff --git a/libbindgen/tests/headers/using.hpp b/libbindgen/tests/headers/using.hpp
deleted file mode 100644
index ba07b9c8..00000000
--- a/libbindgen/tests/headers/using.hpp
+++ /dev/null
@@ -1,11 +0,0 @@
-// bindgen-flags: -- -std=c++11
-
-template<typename T>
-class Point {
- T x;
- T y;
-};
-
-typedef Point<int> IntPoint2D;
-
-using IntVec2D = Point<int>;
diff --git a/libbindgen/tests/headers/var-tracing.hpp b/libbindgen/tests/headers/var-tracing.hpp
deleted file mode 100644
index 0d0b0cca..00000000
--- a/libbindgen/tests/headers/var-tracing.hpp
+++ /dev/null
@@ -1,10 +0,0 @@
-// bindgen-flags: --whitelist-type Baz
-
-struct Bar {
- const int m_baz;
- Bar(int baz);
-};
-
-class Baz {
- static const Bar FOO[];
-};
diff --git a/libbindgen/tests/headers/variadic-method.hpp b/libbindgen/tests/headers/variadic-method.hpp
deleted file mode 100644
index 78a8eb45..00000000
--- a/libbindgen/tests/headers/variadic-method.hpp
+++ /dev/null
@@ -1,6 +0,0 @@
-
-void foo(const char* fmt, ...);
-
-struct Bar {
- void foo(const char* fmt, ...);
-};
diff --git a/libbindgen/tests/headers/variadic_template_function.hpp b/libbindgen/tests/headers/variadic_template_function.hpp
deleted file mode 100644
index 4942d8f0..00000000
--- a/libbindgen/tests/headers/variadic_template_function.hpp
+++ /dev/null
@@ -1,6 +0,0 @@
-
-template <typename T>
-class VariadicFunctionObject {
-public:
- int add_em_up(T count,...);
-};
diff --git a/libbindgen/tests/headers/vector.hpp b/libbindgen/tests/headers/vector.hpp
deleted file mode 100644
index 4707f77f..00000000
--- a/libbindgen/tests/headers/vector.hpp
+++ /dev/null
@@ -1,3 +0,0 @@
-struct foo {
- __attribute__((__vector_size__(1 * sizeof(long long)))) long long mMember;
-};
diff --git a/libbindgen/tests/headers/virtual_dtor.hpp b/libbindgen/tests/headers/virtual_dtor.hpp
deleted file mode 100644
index c35dcab1..00000000
--- a/libbindgen/tests/headers/virtual_dtor.hpp
+++ /dev/null
@@ -1,3 +0,0 @@
-struct nsSlots {
- virtual ~nsSlots();
-};
diff --git a/libbindgen/tests/headers/virtual_inheritance.hpp b/libbindgen/tests/headers/virtual_inheritance.hpp
deleted file mode 100644
index 5198c51e..00000000
--- a/libbindgen/tests/headers/virtual_inheritance.hpp
+++ /dev/null
@@ -1,16 +0,0 @@
-
-class A {
- int foo;
-};
-
-class B: public virtual A {
- int bar;
-};
-
-class C: public virtual A {
- int baz;
-};
-
-class D: public C, public B {
- int bazz;
-};
diff --git a/libbindgen/tests/headers/virtual_overloaded.hpp b/libbindgen/tests/headers/virtual_overloaded.hpp
deleted file mode 100644
index 8aea8a19..00000000
--- a/libbindgen/tests/headers/virtual_overloaded.hpp
+++ /dev/null
@@ -1,5 +0,0 @@
-class C {
-public:
- virtual void do_thing(char) { };
- virtual void do_thing(int) { };
-};
diff --git a/libbindgen/tests/headers/vtable_recursive_sig.hpp b/libbindgen/tests/headers/vtable_recursive_sig.hpp
deleted file mode 100644
index 8729be00..00000000
--- a/libbindgen/tests/headers/vtable_recursive_sig.hpp
+++ /dev/null
@@ -1,11 +0,0 @@
-// bindgen-flags: -- -std=c++11
-
-class Derived;
-class Base {
-public:
- virtual Derived* AsDerived() { return nullptr; }
-};
-
-class Derived final : public Base {
- virtual Derived* AsDerived() override { return this; }
-};
diff --git a/libbindgen/tests/headers/weird_bitfields.hpp b/libbindgen/tests/headers/weird_bitfields.hpp
deleted file mode 100644
index 755681c1..00000000
--- a/libbindgen/tests/headers/weird_bitfields.hpp
+++ /dev/null
@@ -1,35 +0,0 @@
-// bindgen-flags: --no-unstable-rust
-// You can guess where this is taken from...
-enum nsStyleSVGOpacitySource {
- eStyleSVGOpacitySource_Normal,
- eStyleSVGOpacitySource_ContextFillOpacity,
- eStyleSVGOpacitySource_ContextStrokeOpacity
-};
-
-class Weird {
- unsigned int mStrokeDasharrayLength;
- unsigned int bitTest: 16;
- unsigned int bitTest2: 15;
- unsigned char mClipRule; // [inherited]
- unsigned char mColorInterpolation; // [inherited] see nsStyleConsts.h
- unsigned char mColorInterpolationFilters; // [inherited] see nsStyleConsts.h
- unsigned char mFillRule; // [inherited] see nsStyleConsts.h
- unsigned char mImageRendering; // [inherited] see nsStyleConsts.h
- unsigned char mPaintOrder; // [inherited] see nsStyleConsts.h
- unsigned char mShapeRendering; // [inherited] see nsStyleConsts.h
- unsigned char mStrokeLinecap; // [inherited] see nsStyleConsts.h
- unsigned char mStrokeLinejoin; // [inherited] see nsStyleConsts.h
- unsigned char mTextAnchor; // [inherited] see nsStyleConsts.h
- unsigned char mTextRendering; // [inherited] see nsStyleConsts.h
-
- // In SVG glyphs, whether we inherit fill or stroke opacity from the outer
- // text object.
- // Use 3 bits to avoid signedness problems in MSVC.
- nsStyleSVGOpacitySource mFillOpacitySource : 3;
- nsStyleSVGOpacitySource mStrokeOpacitySource : 3;
-
- // SVG glyph outer object inheritance for other properties
- bool mStrokeDasharrayFromObject : 1;
- bool mStrokeDashoffsetFromObject : 1;
- bool mStrokeWidthFromObject : 1;
-};
diff --git a/libbindgen/tests/headers/what_is_going_on.hpp b/libbindgen/tests/headers/what_is_going_on.hpp
deleted file mode 100644
index 078c1ad5..00000000
--- a/libbindgen/tests/headers/what_is_going_on.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-
-struct UnknownUnits {};
-typedef float Float;
-
-template<class units, class F = Float>
-struct PointTyped {
- F x;
- F y;
-
- static PointTyped<units, F> FromUnknownPoint(const PointTyped<UnknownUnits, F>& aPoint) {
- return PointTyped<units, F>(aPoint.x, aPoint.y);
- }
-
- PointTyped<UnknownUnits, F> ToUnknownPoint() const {
- return PointTyped<UnknownUnits, F>(this->x, this->y);
- }
-};
-
-typedef PointTyped<UnknownUnits> IntPoint;
diff --git a/libbindgen/tests/headers/whitelist-namespaces-basic.hpp b/libbindgen/tests/headers/whitelist-namespaces-basic.hpp
deleted file mode 100644
index 2eaa8740..00000000
--- a/libbindgen/tests/headers/whitelist-namespaces-basic.hpp
+++ /dev/null
@@ -1,10 +0,0 @@
-// bindgen-flags: --enable-cxx-namespaces --whitelist-type outer::inner::Helper
-
-namespace outer {
- namespace inner {
- struct Helper {};
- }
- struct Test {
- inner::Helper helper;
- };
-}
diff --git a/libbindgen/tests/headers/whitelist-namespaces.hpp b/libbindgen/tests/headers/whitelist-namespaces.hpp
deleted file mode 100644
index d34cbe94..00000000
--- a/libbindgen/tests/headers/whitelist-namespaces.hpp
+++ /dev/null
@@ -1,10 +0,0 @@
-// bindgen-flags: --enable-cxx-namespaces --whitelist-type '.*'
-
-namespace outer {
- namespace inner {
- struct Helper {};
- }
- struct Test {
- inner::Helper helper;
- };
-}
diff --git a/libbindgen/tests/headers/whitelist_basic.hpp b/libbindgen/tests/headers/whitelist_basic.hpp
deleted file mode 100644
index 8424f75a..00000000
--- a/libbindgen/tests/headers/whitelist_basic.hpp
+++ /dev/null
@@ -1,16 +0,0 @@
-// bindgen-flags: --whitelist-type WhitelistMe
-
-template<typename T>
-class WhitelistMe {
- class Inner {
- T bar;
- };
-
- int foo;
- Inner bar;
-};
-
-struct DontWhitelistMe {
- void* foo;
- double _Complex noComplexGenerated;
-};
diff --git a/libbindgen/tests/headers/whitelist_fix.hpp b/libbindgen/tests/headers/whitelist_fix.hpp
deleted file mode 100644
index d0abda54..00000000
--- a/libbindgen/tests/headers/whitelist_fix.hpp
+++ /dev/null
@@ -1,4 +0,0 @@
-// bindgen-flags: --whitelist-function 'Servo_.*' --blacklist-type Test --raw-line "pub enum Test {}"
-
-struct Test {};
-extern "C" void Servo_Test(Test* a);
diff --git a/libbindgen/tests/headers/whitelist_vars.h b/libbindgen/tests/headers/whitelist_vars.h
deleted file mode 100644
index 07fa2815..00000000
--- a/libbindgen/tests/headers/whitelist_vars.h
+++ /dev/null
@@ -1,4 +0,0 @@
-#define NONE 0
-#define FOO 5
-#define FOOB -2
-#define FOOBAR (-10)