We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd42f7f commit d0c58f6Copy full SHA for d0c58f6
integration-tests/tests/integration_test.rs
@@ -5882,6 +5882,33 @@ fn test_generate_all() {
5882
);
5883
}
5884
5885
+/// This is something of a stress test -
5886
+/// we #include <string> and try to generate everything.
5887
+#[test]
5888
+fn test_generate_all_string() {
5889
+ let hdr = indoc! {"
5890
+ #include <cstdint>
5891
+ #include <string>
5892
+ inline uint32_t give_int() {
5893
+ return 5;
5894
+ }
5895
+ "};
5896
+ let rs = quote! {
5897
+ assert_eq!(ffi::give_int(), 5);
5898
+ };
5899
+ run_test_ex(
5900
+ "",
5901
+ hdr,
5902
+ rs,
5903
+ quote! {
5904
+ generate_all!()
5905
+ },
5906
+ None,
5907
5908
5909
+ );
5910
+}
5911
+
5912
#[test]
5913
fn test_std_thing() {
5914
let hdr = indoc! {"
0 commit comments