File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -23,4 +23,22 @@ pub mod root {
23
23
pub fn NamespacedFunction ( ) ;
24
24
}
25
25
}
26
+ #[ repr( C ) ]
27
+ #[ derive( Debug , Default , Copy , Clone ) ]
28
+ pub struct C {
29
+ pub _address : u8 ,
30
+ }
31
+ #[ test]
32
+ fn bindgen_test_layout_C ( ) {
33
+ assert_eq ! (
34
+ :: std:: mem:: size_of:: <C >( ) ,
35
+ 1usize ,
36
+ concat!( "Size of: " , stringify!( C ) )
37
+ ) ;
38
+ assert_eq ! (
39
+ :: std:: mem:: align_of:: <C >( ) ,
40
+ 1usize ,
41
+ concat!( "Alignment of " , stringify!( C ) )
42
+ ) ;
43
+ }
26
44
}
Original file line number Diff line number Diff line change 1
- // bindgen-flags: --blacklist-function "ExternFunction" --blacklist-function "foo::NamespacedFunction" --enable-cxx-namespaces
1
+ // bindgen-flags: --blacklist-function "ExternFunction" --blacklist-function "foo::NamespacedFunction" --blacklist-function "C_ClassMethod" -- enable-cxx-namespaces
2
2
3
3
extern " C" void ExternFunction ();
4
4
@@ -9,3 +9,8 @@ namespace foo {
9
9
namespace bar {
10
10
void NamespacedFunction ();
11
11
}
12
+
13
+ class C {
14
+ public:
15
+ void ClassMethod ();
16
+ };
You can’t perform that action at this time.
0 commit comments