blob: 483f8be680d20003413925d647506ccdc5f940e5 [file] [log] [blame]
Brian Silvermanc270a4d2022-07-23 16:08:06 -07001use autocxx::include_cpp;
2
3include_cpp! (
4#include "build_tests/hello_autocxx.h"
5generate!("plain_function")
6);
7
8#[cfg(test)]
9mod 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}