summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Kulp <darren@kulp.ch>2020-06-23 15:50:42 -0700
committerEmilio Cobos Álvarez <emilio@crisal.io>2022-02-18 19:33:25 +0100
commit8be556a08ee967fea301a2298831ff829f2db061 (patch)
treef99e17f426effc8ad100db120ecd45b853e655d4
parentc4532e0c1756e2df1c20dd67b781582f4289709b (diff)
tests: Remove clang-3.9 expectations
-rw-r--r--Cargo.toml1
-rw-r--r--bindgen-integration/Cargo.toml1
-rw-r--r--src/main.rs2
-rw-r--r--tests/expectations/build.rs1
-rw-r--r--tests/expectations/tests/libclang-3.9/abi_variadic_function.rs11
-rw-r--r--tests/expectations/tests/libclang-3.9/auto.rs35
-rw-r--r--tests/expectations/tests/libclang-3.9/call-conv-field.rs60
-rw-r--r--tests/expectations/tests/libclang-3.9/const_bool.rs29
-rw-r--r--tests/expectations/tests/libclang-3.9/constant-evaluate.rs27
-rw-r--r--tests/expectations/tests/libclang-3.9/error-E0600-cannot-apply-unary-negation-to-u32.rs9
-rw-r--r--tests/expectations/tests/libclang-3.9/issue-769-bad-instantiation-test.rs65
-rw-r--r--tests/expectations/tests/libclang-3.9/mangling-win32.rs52
-rw-r--r--tests/expectations/tests/libclang-3.9/objc_inheritance.rs117
-rw-r--r--tests/expectations/tests/libclang-3.9/objc_template.rs65
-rw-r--r--tests/expectations/tests/libclang-3.9/partial-specialization-and-inheritance.rs39
-rw-r--r--tests/expectations/tests/libclang-3.9/template_instantiation_with_fn_local_type.rs60
-rw-r--r--tests/expectations/tests/libclang-3.9/type_alias_template_specialized.rs37
-rw-r--r--tests/expectations/tests/libclang-3.9/wasm-constructor-returns.rs37
-rwxr-xr-xtests/stylo_sanity.rs1
-rw-r--r--tests/tests.rs2
20 files changed, 0 insertions, 651 deletions
diff --git a/Cargo.toml b/Cargo.toml
index cc608706..cec8a579 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -84,4 +84,3 @@ testing_only_extra_assertions = []
testing_only_libclang_9 = []
testing_only_libclang_5 = []
testing_only_libclang_4 = []
-testing_only_libclang_3_9 = []
diff --git a/bindgen-integration/Cargo.toml b/bindgen-integration/Cargo.toml
index 650dedaf..9dcf1d37 100644
--- a/bindgen-integration/Cargo.toml
+++ b/bindgen-integration/Cargo.toml
@@ -19,4 +19,3 @@ testing_only_extra_assertions = ["bindgen/testing_only_extra_assertions"]
testing_only_libclang_9 = ["bindgen/testing_only_libclang_9"]
testing_only_libclang_5 = ["bindgen/testing_only_libclang_5"]
testing_only_libclang_4 = ["bindgen/testing_only_libclang_4"]
-testing_only_libclang_3_9 = ["bindgen/testing_only_libclang_3_9"]
diff --git a/src/main.rs b/src/main.rs
index f3398db8..a2089574 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -25,8 +25,6 @@ fn clang_version_check() {
Some((5, 0))
} else if cfg!(feature = "testing_only_libclang_4") {
Some((4, 0))
- } else if cfg!(feature = "testing_only_libclang_3_9") {
- Some((3, 9))
} else {
None
};
diff --git a/tests/expectations/build.rs b/tests/expectations/build.rs
index 2b426a44..beed7116 100644
--- a/tests/expectations/build.rs
+++ b/tests/expectations/build.rs
@@ -9,7 +9,6 @@ use std::io::Write;
use std::path::Path;
const LIBCLANG_VERSION_DIRS: &'static [&'static str] = &[
- "libclang-3.9",
"libclang-4",
"libclang-5",
"libclang-9",
diff --git a/tests/expectations/tests/libclang-3.9/abi_variadic_function.rs b/tests/expectations/tests/libclang-3.9/abi_variadic_function.rs
deleted file mode 100644
index 6aeb16f2..00000000
--- a/tests/expectations/tests/libclang-3.9/abi_variadic_function.rs
+++ /dev/null
@@ -1,11 +0,0 @@
-#![allow(
- dead_code,
- non_snake_case,
- non_camel_case_types,
- non_upper_case_globals
-)]
-
-extern "C" {
- #[link_name = "\u{1}_Z1bcz"]
- pub fn b(arg1: ::std::os::raw::c_char, ...) -> ::std::os::raw::c_char;
-}
diff --git a/tests/expectations/tests/libclang-3.9/auto.rs b/tests/expectations/tests/libclang-3.9/auto.rs
deleted file mode 100644
index 0b20b39e..00000000
--- a/tests/expectations/tests/libclang-3.9/auto.rs
+++ /dev/null
@@ -1,35 +0,0 @@
-#![allow(
- dead_code,
- non_snake_case,
- non_camel_case_types,
- non_upper_case_globals
-)]
-
-#[repr(C)]
-#[derive(Debug, Default, Copy, Clone)]
-pub struct Foo {
- pub _address: u8,
-}
-pub const Foo_kFoo: bool = true;
-#[test]
-fn bindgen_test_layout_Foo() {
- assert_eq!(
- ::std::mem::size_of::<Foo>(),
- 1usize,
- concat!("Size of: ", stringify!(Foo))
- );
- assert_eq!(
- ::std::mem::align_of::<Foo>(),
- 1usize,
- concat!("Alignment of ", stringify!(Foo))
- );
-}
-#[repr(C)]
-#[derive(Debug, Default, Copy, Clone)]
-pub struct Bar {
- pub _address: u8,
-}
-extern "C" {
- #[link_name = "\u{1}_Z5Test2v"]
- pub fn Test2() -> ::std::os::raw::c_uint;
-}
diff --git a/tests/expectations/tests/libclang-3.9/call-conv-field.rs b/tests/expectations/tests/libclang-3.9/call-conv-field.rs
deleted file mode 100644
index f134bd8a..00000000
--- a/tests/expectations/tests/libclang-3.9/call-conv-field.rs
+++ /dev/null
@@ -1,60 +0,0 @@
-#![allow(
- dead_code,
- non_snake_case,
- non_camel_case_types,
- non_upper_case_globals
-)]
-#![cfg(not(test))]
-
-#[repr(C)]
-#[derive(Default, Copy, Clone)]
-pub struct JNINativeInterface_ {
- pub GetVersion: ::std::option::Option<
- unsafe extern "stdcall" fn(
- env: *mut ::std::os::raw::c_void,
- ) -> ::std::os::raw::c_int,
- >,
- pub __hack: ::std::os::raw::c_ulonglong,
-}
-#[test]
-fn bindgen_test_layout_JNINativeInterface_() {
- assert_eq!(
- ::std::mem::size_of::<JNINativeInterface_>(),
- 16usize,
- concat!("Size of: ", stringify!(JNINativeInterface_))
- );
- assert_eq!(
- ::std::mem::align_of::<JNINativeInterface_>(),
- 8usize,
- concat!("Alignment of ", stringify!(JNINativeInterface_))
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<JNINativeInterface_>())).GetVersion
- as *const _ as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(JNINativeInterface_),
- "::",
- stringify!(GetVersion)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<JNINativeInterface_>())).__hack as *const _
- as usize
- },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(JNINativeInterface_),
- "::",
- stringify!(__hack)
- )
- );
-}
-extern "stdcall" {
- pub fn bar();
-}
diff --git a/tests/expectations/tests/libclang-3.9/const_bool.rs b/tests/expectations/tests/libclang-3.9/const_bool.rs
deleted file mode 100644
index 97e1d8dd..00000000
--- a/tests/expectations/tests/libclang-3.9/const_bool.rs
+++ /dev/null
@@ -1,29 +0,0 @@
-#![allow(
- dead_code,
- non_snake_case,
- non_camel_case_types,
- non_upper_case_globals
-)]
-
-pub const k: bool = true;
-#[repr(C)]
-#[derive(Debug, Default, Copy, Clone)]
-pub struct A {
- pub _address: u8,
-}
-pub const A_k: bool = false;
-#[test]
-fn bindgen_test_layout_A() {
- assert_eq!(
- ::std::mem::size_of::<A>(),
- 1usize,
- concat!("Size of: ", stringify!(A))
- );
- assert_eq!(
- ::std::mem::align_of::<A>(),
- 1usize,
- concat!("Alignment of ", stringify!(A))
- );
-}
-pub type foo = bool;
-pub const k2: foo = true;
diff --git a/tests/expectations/tests/libclang-3.9/constant-evaluate.rs b/tests/expectations/tests/libclang-3.9/constant-evaluate.rs
deleted file mode 100644
index b7286a37..00000000
--- a/tests/expectations/tests/libclang-3.9/constant-evaluate.rs
+++ /dev/null
@@ -1,27 +0,0 @@
-#![allow(
- dead_code,
- non_snake_case,
- non_camel_case_types,
- non_upper_case_globals
-)]
-
-pub const foo: _bindgen_ty_1 = _bindgen_ty_1::foo;
-pub const bar: _bindgen_ty_1 = _bindgen_ty_1::bar;
-#[repr(u32)]
-#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
-pub enum _bindgen_ty_1 {
- foo = 4,
- bar = 8,
-}
-pub type EasyToOverflow = ::std::os::raw::c_ulonglong;
-pub const k: EasyToOverflow = 2147483648;
-pub const k_expr: EasyToOverflow = 0;
-extern "C" {
- pub static wow: EasyToOverflow;
-}
-pub const BAZ: ::std::os::raw::c_longlong = 24;
-pub const fuzz: f64 = 51.0;
-pub const BAZZ: ::std::os::raw::c_char = 53;
-pub const WAT: ::std::os::raw::c_char = 0;
-pub const bytestring: &[u8; 4usize] = b"Foo\0";
-pub const NOT_UTF8: [u8; 5usize] = [240u8, 40u8, 140u8, 40u8, 0u8];
diff --git a/tests/expectations/tests/libclang-3.9/error-E0600-cannot-apply-unary-negation-to-u32.rs b/tests/expectations/tests/libclang-3.9/error-E0600-cannot-apply-unary-negation-to-u32.rs
deleted file mode 100644
index 3fa853ee..00000000
--- a/tests/expectations/tests/libclang-3.9/error-E0600-cannot-apply-unary-negation-to-u32.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-#![allow(
- dead_code,
- non_snake_case,
- non_camel_case_types,
- non_upper_case_globals
-)]
-#![allow(overflowing_literals)]
-
-pub const a: u32 = 18446744073709551611;
diff --git a/tests/expectations/tests/libclang-3.9/issue-769-bad-instantiation-test.rs b/tests/expectations/tests/libclang-3.9/issue-769-bad-instantiation-test.rs
deleted file mode 100644
index 47e166c7..00000000
--- a/tests/expectations/tests/libclang-3.9/issue-769-bad-instantiation-test.rs
+++ /dev/null
@@ -1,65 +0,0 @@
-#![allow(
- dead_code,
- non_snake_case,
- non_camel_case_types,
- non_upper_case_globals
-)]
-
-#[allow(non_snake_case, non_camel_case_types, non_upper_case_globals)]
-pub mod root {
- #[allow(unused_imports)]
- use self::super::root;
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct Rooted<T> {
- pub member: T,
- pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>,
- }
- impl<T> Default for Rooted<T> {
- fn default() -> Self {
- let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
- unsafe {
- ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
- s.assume_init()
- }
- }
- }
- #[test]
- fn __bindgen_test_layout_Rooted_open0_int_close0_instantiation() {
- assert_eq!(
- ::std::mem::size_of::<root::Rooted<::std::os::raw::c_int>>(),
- 4usize,
- concat!(
- "Size of template specialization: ",
- stringify!(root::Rooted<::std::os::raw::c_int>)
- )
- );
- assert_eq!(
- ::std::mem::align_of::<root::Rooted<::std::os::raw::c_int>>(),
- 4usize,
- concat!(
- "Alignment of template specialization: ",
- stringify!(root::Rooted<::std::os::raw::c_int>)
- )
- );
- }
- #[test]
- fn __bindgen_test_layout_Rooted_open0_int_close0_instantiation_1() {
- assert_eq!(
- ::std::mem::size_of::<root::Rooted<::std::os::raw::c_int>>(),
- 4usize,
- concat!(
- "Size of template specialization: ",
- stringify!(root::Rooted<::std::os::raw::c_int>)
- )
- );
- assert_eq!(
- ::std::mem::align_of::<root::Rooted<::std::os::raw::c_int>>(),
- 4usize,
- concat!(
- "Alignment of template specialization: ",
- stringify!(root::Rooted<::std::os::raw::c_int>)
- )
- );
- }
-}
diff --git a/tests/expectations/tests/libclang-3.9/mangling-win32.rs b/tests/expectations/tests/libclang-3.9/mangling-win32.rs
deleted file mode 100644
index 0aee3274..00000000
--- a/tests/expectations/tests/libclang-3.9/mangling-win32.rs
+++ /dev/null
@@ -1,52 +0,0 @@
-#![allow(
- dead_code,
- non_snake_case,
- non_camel_case_types,
- non_upper_case_globals
-)]
-
-extern "C" {
- pub fn foo();
-}
-#[repr(C)]
-#[derive(Debug, Default, Copy, Clone)]
-pub struct Foo {
- pub _address: u8,
-}
-extern "C" {
- #[link_name = "\u{1}?sBar@Foo@@2_NA"]
- pub static mut Foo_sBar: bool;
-}
-#[test]
-fn bindgen_test_layout_Foo() {
- assert_eq!(
- ::std::mem::size_of::<Foo>(),
- 1usize,
- concat!("Size of: ", stringify!(Foo))
- );
- assert_eq!(
- ::std::mem::align_of::<Foo>(),
- 1usize,
- concat!("Alignment of ", stringify!(Foo))
- );
-}
-extern "fastcall" {
- pub fn fast_call_func_no_args() -> ::std::os::raw::c_int;
-}
-extern "fastcall" {
- pub fn fast_call_func_many_args(
- arg1: ::std::os::raw::c_int,
- arg2: ::std::os::raw::c_int,
- arg3: ::std::os::raw::c_int,
- ) -> ::std::os::raw::c_int;
-}
-extern "stdcall" {
- pub fn std_call_func_no_args() -> ::std::os::raw::c_int;
-}
-extern "stdcall" {
- pub fn std_call_func_many_args(
- arg1: ::std::os::raw::c_int,
- arg2: ::std::os::raw::c_int,
- arg3: ::std::os::raw::c_int,
- ) -> ::std::os::raw::c_int;
-}
diff --git a/tests/expectations/tests/libclang-3.9/objc_inheritance.rs b/tests/expectations/tests/libclang-3.9/objc_inheritance.rs
deleted file mode 100644
index 5f07dbaa..00000000
--- a/tests/expectations/tests/libclang-3.9/objc_inheritance.rs
+++ /dev/null
@@ -1,117 +0,0 @@
-#![allow(
- dead_code,
- non_snake_case,
- non_camel_case_types,
- non_upper_case_globals
-)]
-#![cfg(target_os = "macos")]
-
-#[macro_use]
-extern crate objc;
-#[allow(non_camel_case_types)]
-pub type id = *mut objc::runtime::Object;
-#[repr(transparent)]
-#[derive(Clone)]
-pub struct Foo(pub id);
-impl std::ops::Deref for Foo {
- type Target = objc::runtime::Object;
- fn deref(&self) -> &Self::Target {
- unsafe { &*self.0 }
- }
-}
-unsafe impl objc::Message for Foo {}
-impl Foo {
- pub fn alloc() -> Self {
- Self(unsafe { msg_send!(objc::class!(Foo), alloc) })
- }
-}
-impl IFoo for Foo {}
-pub trait IFoo: Sized + std::ops::Deref {}
-#[repr(transparent)]
-#[derive(Clone)]
-pub struct Bar(pub id);
-impl std::ops::Deref for Bar {
- type Target = objc::runtime::Object;
- fn deref(&self) -> &Self::Target {
- unsafe { &*self.0 }
- }
-}
-unsafe impl objc::Message for Bar {}
-impl Bar {
- pub fn alloc() -> Self {
- Self(unsafe { msg_send!(objc::class!(Bar), alloc) })
- }
-}
-impl IFoo for Bar {}
-impl From<Bar> for Foo {
- fn from(child: Bar) -> Foo {
- Foo(child.0)
- }
-}
-impl std::convert::TryFrom<Foo> for Bar {
- type Error = &'static str;
- fn try_from(parent: Foo) -> Result<Bar, Self::Error> {
- let is_kind_of: bool =
- unsafe { msg_send!(parent, isKindOfClass: class!(Bar)) };
- if is_kind_of {
- Ok(Bar(parent.0))
- } else {
- Err("This Foo cannot be downcasted to Bar")
- }
- }
-}
-impl IBar for Bar {}
-pub trait IBar: Sized + std::ops::Deref {}
-#[repr(transparent)]
-#[derive(Clone)]
-pub struct Baz(pub id);
-impl std::ops::Deref for Baz {
- type Target = objc::runtime::Object;
- fn deref(&self) -> &Self::Target {
- unsafe { &*self.0 }
- }
-}
-unsafe impl objc::Message for Baz {}
-impl Baz {
- pub fn alloc() -> Self {
- Self(unsafe { msg_send!(objc::class!(Baz), alloc) })
- }
-}
-impl IBar for Baz {}
-impl From<Baz> for Bar {
- fn from(child: Baz) -> Bar {
- Bar(child.0)
- }
-}
-impl std::convert::TryFrom<Bar> for Baz {
- type Error = &'static str;
- fn try_from(parent: Bar) -> Result<Baz, Self::Error> {
- let is_kind_of: bool =
- unsafe { msg_send!(parent, isKindOfClass: class!(Baz)) };
- if is_kind_of {
- Ok(Baz(parent.0))
- } else {
- Err("This Bar cannot be downcasted to Baz")
- }
- }
-}
-impl IFoo for Baz {}
-impl From<Baz> for Foo {
- fn from(child: Baz) -> Foo {
- Foo(child.0)
- }
-}
-impl std::convert::TryFrom<Foo> for Baz {
- type Error = &'static str;
- fn try_from(parent: Foo) -> Result<Baz, Self::Error> {
- let is_kind_of: bool =
- unsafe { msg_send!(parent, isKindOfClass: class!(Baz)) };
- if is_kind_of {
- Ok(Baz(parent.0))
- } else {
- Err("This Foo cannot be downcasted to Baz")
- }
- }
-}
-impl IBaz for Baz {}
-pub trait IBaz: Sized + std::ops::Deref {}
diff --git a/tests/expectations/tests/libclang-3.9/objc_template.rs b/tests/expectations/tests/libclang-3.9/objc_template.rs
deleted file mode 100644
index 4ccf72b7..00000000
--- a/tests/expectations/tests/libclang-3.9/objc_template.rs
+++ /dev/null
@@ -1,65 +0,0 @@
-#![allow(
- dead_code,
- non_snake_case,
- non_camel_case_types,
- non_upper_case_globals
-)]
-#![cfg(target_os = "macos")]
-
-#[macro_use]
-extern crate objc;
-#[allow(non_camel_case_types)]
-pub type id = *mut objc::runtime::Object;
-#[repr(transparent)]
-#[derive(Clone)]
-pub struct Foo(pub id);
-impl std::ops::Deref for Foo {
- type Target = objc::runtime::Object;
- fn deref(&self) -> &Self::Target {
- unsafe { &*self.0 }
- }
-}
-unsafe impl objc::Message for Foo {}
-impl Foo {
- pub fn alloc() -> Self {
- Self(unsafe { msg_send!(objc::class!(Foo), alloc) })
- }
-}
-impl<ObjectType: 'static> IFoo<ObjectType> for Foo {}
-pub trait IFoo<ObjectType>: Sized + std::ops::Deref {
- unsafe fn get(&self) -> id
- where
- <Self as std::ops::Deref>::Target: objc::Message + Sized,
- {
- msg_send!(*self, get)
- }
-}
-#[repr(transparent)]
-#[derive(Clone)]
-pub struct FooMultiGeneric(pub id);
-impl std::ops::Deref for FooMultiGeneric {
- type Target = objc::runtime::Object;
- fn deref(&self) -> &Self::Target {
- unsafe { &*self.0 }
- }
-}
-unsafe impl objc::Message for FooMultiGeneric {}
-impl FooMultiGeneric {
- pub fn alloc() -> Self {
- Self(unsafe { msg_send!(objc::class!(FooMultiGeneric), alloc) })
- }
-}
-impl<KeyType: 'static, ObjectType: 'static>
- IFooMultiGeneric<KeyType, ObjectType> for FooMultiGeneric
-{
-}
-pub trait IFooMultiGeneric<KeyType, ObjectType>:
- Sized + std::ops::Deref
-{
- unsafe fn objectForKey_(&self, key: id) -> id
- where
- <Self as std::ops::Deref>::Target: objc::Message + Sized,
- {
- msg_send!(*self, objectForKey: key)
- }
-}
diff --git a/tests/expectations/tests/libclang-3.9/partial-specialization-and-inheritance.rs b/tests/expectations/tests/libclang-3.9/partial-specialization-and-inheritance.rs
deleted file mode 100644
index e62ea681..00000000
--- a/tests/expectations/tests/libclang-3.9/partial-specialization-and-inheritance.rs
+++ /dev/null
@@ -1,39 +0,0 @@
-#![allow(
- dead_code,
- non_snake_case,
- non_camel_case_types,
- non_upper_case_globals
-)]
-
-#[repr(C)]
-#[derive(Debug, Default, Copy, Clone)]
-pub struct Base {
- pub _address: u8,
-}
-#[repr(C)]
-#[derive(Debug, Default, Copy, Clone)]
-pub struct Derived {
- pub b: bool,
-}
-#[repr(C)]
-#[derive(Debug, Default, Copy, Clone)]
-pub struct Usage {
- pub _address: u8,
-}
-extern "C" {
- #[link_name = "\u{1}_ZN5Usage13static_memberE"]
- pub static mut Usage_static_member: [u32; 2usize];
-}
-#[test]
-fn bindgen_test_layout_Usage() {
- assert_eq!(
- ::std::mem::size_of::<Usage>(),
- 1usize,
- concat!("Size of: ", stringify!(Usage))
- );
- assert_eq!(
- ::std::mem::align_of::<Usage>(),
- 1usize,
- concat!("Alignment of ", stringify!(Usage))
- );
-}
diff --git a/tests/expectations/tests/libclang-3.9/template_instantiation_with_fn_local_type.rs b/tests/expectations/tests/libclang-3.9/template_instantiation_with_fn_local_type.rs
deleted file mode 100644
index ba0c6e7b..00000000
--- a/tests/expectations/tests/libclang-3.9/template_instantiation_with_fn_local_type.rs
+++ /dev/null
@@ -1,60 +0,0 @@
-#![allow(
- dead_code,
- non_snake_case,
- non_camel_case_types,
- non_upper_case_globals
-)]
-
-#[repr(C)]
-#[derive(Debug, Default, Copy, Clone)]
-pub struct Foo {
- pub _address: u8,
-}
-extern "C" {
- #[link_name = "\u{1}_Z1fv"]
- pub fn f();
-}
-#[test]
-fn __bindgen_test_layout_Foo_open0__bindgen_ty_id_20_close0_instantiation() {
- assert_eq!(
- ::std::mem::size_of::<Foo>(),
- 1usize,
- concat!("Size of template specialization: ", stringify!(Foo))
- );
- assert_eq!(
- ::std::mem::align_of::<Foo>(),
- 1usize,
- concat!("Alignment of template specialization: ", stringify!(Foo))
- );
-}
-#[repr(C)]
-#[derive(Debug, Default, Copy, Clone)]
-pub struct Baz {
- pub _address: u8,
-}
-#[test]
-fn bindgen_test_layout_Baz() {
- assert_eq!(
- ::std::mem::size_of::<Baz>(),
- 1usize,
- concat!("Size of: ", stringify!(Baz))
- );
- assert_eq!(
- ::std::mem::align_of::<Baz>(),
- 1usize,
- concat!("Alignment of ", stringify!(Baz))
- );
-}
- #[test]
-fn __bindgen_test_layout_Foo_open0__bindgen_ty_id_21_close0_instantiation() {
- assert_eq!(
- ::std::mem::size_of::<Foo>(),
- 1usize,
- concat!("Size of template specialization: ", stringify!(Foo))
- );
- assert_eq!(
- ::std::mem::align_of::<Foo>(),
- 1usize,
- concat!("Alignment of template specialization: ", stringify!(Foo))
- );
-}
diff --git a/tests/expectations/tests/libclang-3.9/type_alias_template_specialized.rs b/tests/expectations/tests/libclang-3.9/type_alias_template_specialized.rs
deleted file mode 100644
index 67e1c5ae..00000000
--- a/tests/expectations/tests/libclang-3.9/type_alias_template_specialized.rs
+++ /dev/null
@@ -1,37 +0,0 @@
-#![allow(
- dead_code,
- non_snake_case,
- non_camel_case_types,
- non_upper_case_globals
-)]
-
-#[repr(C)]
-#[derive(Debug, Default, Copy, Clone)]
-pub struct Rooted {
- pub ptr: ::std::os::raw::c_int,
-}
-#[test]
-fn bindgen_test_layout_Rooted() {
- assert_eq!(
- ::std::mem::size_of::<Rooted>(),
- 4usize,
- concat!("Size of: ", stringify!(Rooted))
- );
- assert_eq!(
- ::std::mem::align_of::<Rooted>(),
- 4usize,
- concat!("Alignment of ", stringify!(Rooted))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<Rooted>())).ptr as *const _ as usize },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(Rooted),
- "::",
- stringify!(ptr)
- )
- );
-}
-/// <div rustbindgen replaces="MaybeWrapped"></div>
-pub type MaybeWrapped<a> = a;
diff --git a/tests/expectations/tests/libclang-3.9/wasm-constructor-returns.rs b/tests/expectations/tests/libclang-3.9/wasm-constructor-returns.rs
deleted file mode 100644
index f207d0d8..00000000
--- a/tests/expectations/tests/libclang-3.9/wasm-constructor-returns.rs
+++ /dev/null
@@ -1,37 +0,0 @@
-#![allow(
- dead_code,
- non_snake_case,
- non_camel_case_types,
- non_upper_case_globals
-)]
-
-#[repr(C)]
-#[derive(Debug, Default, Copy, Clone)]
-pub struct Foo {
- pub _address: u8,
-}
-#[test]
-fn bindgen_test_layout_Foo() {
- assert_eq!(
- ::std::mem::size_of::<Foo>(),
- 1usize,
- concat!("Size of: ", stringify!(Foo))
- );
- assert_eq!(
- ::std::mem::align_of::<Foo>(),
- 1usize,
- concat!("Alignment of ", stringify!(Foo))
- );
-}
-extern "C" {
- #[link_name = "\u{1}_ZN3FooC1Ei"]
- pub fn Foo_Foo(this: *mut Foo, var: ::std::os::raw::c_int);
-}
-impl Foo {
- #[inline]
- pub unsafe fn new(var: ::std::os::raw::c_int) -> Self {
- let mut __bindgen_tmp = ::std::mem::MaybeUninit::uninit();
- Foo_Foo(__bindgen_tmp.as_mut_ptr(), var);
- __bindgen_tmp.assume_init()
- }
-}
diff --git a/tests/stylo_sanity.rs b/tests/stylo_sanity.rs
index 39777cd1..f44f1287 100755
--- a/tests/stylo_sanity.rs
+++ b/tests/stylo_sanity.rs
@@ -16,7 +16,6 @@ extern crate bindgen;
#[test]
#[cfg(not(any(debug_assertions, feature = "testing_only_extra_assertions",)))]
#[cfg(any(
- feature = "testing_only_libclang_3_9",
feature = "testing_only_libclang_4",
feature = "testing_only_libclang_5",
feature = "testing_only_libclang_9"
diff --git a/tests/tests.rs b/tests/tests.rs
index ac0106ad..274c5683 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -143,8 +143,6 @@ fn compare_generated_header(
expectation.push("libclang-5");
} else if cfg!(feature = "testing_only_libclang_4") {
expectation.push("libclang-4");
- } else if cfg!(feature = "testing_only_libclang_3_9") {
- expectation.push("libclang-3.9");
} else {
match clang_version().parsed {
None => expectation.push("libclang-9"),