summaryrefslogtreecommitdiff
path: root/bindgen-tests
diff options
context:
space:
mode:
authorChristian Poveda Ruiz <31802960+pvdrz@users.noreply.github.com>2022-11-17 10:02:29 -0500
committerGitHub <noreply@github.com>2022-11-17 10:02:29 -0500
commit8fe230830fa56e94efcaaa6833d536eec894a71e (patch)
tree34599e7cfeab008371fa0d656b3411a53a60f431 /bindgen-tests
parentce534c1a139745198285ae64b09e81e0a0afe28a (diff)
Remove deprecated methods (#2346)
Diffstat (limited to 'bindgen-tests')
-rw-r--r--bindgen-tests/tests/expectations/tests/whitelist-alternates.rs39
-rw-r--r--bindgen-tests/tests/headers/whitelist-alternates.h8
2 files changed, 0 insertions, 47 deletions
diff --git a/bindgen-tests/tests/expectations/tests/whitelist-alternates.rs b/bindgen-tests/tests/expectations/tests/whitelist-alternates.rs
deleted file mode 100644
index 77d963d8..00000000
--- a/bindgen-tests/tests/expectations/tests/whitelist-alternates.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 WhitelistedType {}
-#[test]
-fn bindgen_test_layout_WhitelistedType() {
- assert_eq!(
- ::std::mem::size_of::<WhitelistedType>(),
- 0usize,
- concat!("Size of: ", stringify!(WhitelistedType))
- );
- assert_eq!(
- ::std::mem::align_of::<WhitelistedType>(),
- 1usize,
- concat!("Alignment of ", stringify!(WhitelistedType))
- );
-}
-#[repr(C)]
-#[derive(Debug, Default, Copy, Clone)]
-pub struct AllowType {}
-#[test]
-fn bindgen_test_layout_AllowType() {
- assert_eq!(
- ::std::mem::size_of::<AllowType>(),
- 0usize,
- concat!("Size of: ", stringify!(AllowType))
- );
- assert_eq!(
- ::std::mem::align_of::<AllowType>(),
- 1usize,
- concat!("Alignment of ", stringify!(AllowType))
- );
-}
diff --git a/bindgen-tests/tests/headers/whitelist-alternates.h b/bindgen-tests/tests/headers/whitelist-alternates.h
deleted file mode 100644
index 7aa3bf87..00000000
--- a/bindgen-tests/tests/headers/whitelist-alternates.h
+++ /dev/null
@@ -1,8 +0,0 @@
-// bindgen-flags: --whitelist-type 'Whitelisted.*|Allow.*'
-// Test for changes introduced in #1756
-
-struct WhitelistedType {};
-struct AllowType {};
-// this would have been accepted because the start anchor
-// wouldn't be applied to the second alternative:
-struct NoAllowType {};