Brian Silverman | c270a4d | 2022-07-23 16:08:06 -0700 | [diff] [blame] | 1 | use autocxx::include_cpp; |
2 | |||||
3 | include_cpp! ( | ||||
4 | #include "build_tests/hello_autocxx.h" | ||||
5 | generate!("plain_function") | ||||
6 | ); | ||||
7 | |||||
8 | #[cfg(test)] | ||||
9 | mod tests { | ||||
10 | use super::*; | ||||
11 | |||||
12 | #[test] | ||||
13 | fn test_plain_function() { | ||||
14 | assert_eq!(autocxx::c_int::from(971), unsafe { ffi::plain_function() }); | ||||
15 | } | ||||
16 | } |