third_party_rust_cxx/tests
David Tolnay 0356d33acb
Pass Str in PtrLen representation
MSVC is hesitant about passing private fields in an extern "C" signature.
Repro:

    struct Str1 {
      const char *ptr;
      size_t len;
    };

    struct Str2 {
    private:
      const char *ptr;
      size_t len;
    };

    extern "C" {
      Str1 str1();
      Str2 str2();
    }

Warning from MSVC v19.27:

    warning C4190: 'str2' has C-linkage specified, but returns UDT 'Str2' which is incompatible with C
2020-10-31 20:33:39 -07:00
..
ffi Format PR 370 with clang-format 2020-10-30 21:12:50 -07:00
ui Revert to older error string. 2020-10-29 21:22:24 -07:00
BUCK Simplify test suite. 2020-10-29 21:21:30 -07:00
BUILD Simplify test suite. 2020-10-29 21:21:30 -07:00
compiletest.rs Bypass compiletest on Windows push and pull_request builds 2020-09-24 23:36:00 -04:00
cxx_gen.rs Pass Str in PtrLen representation 2020-10-31 20:33:39 -07:00
test.rs Simplify test suite. 2020-10-29 21:21:30 -07:00
unique_ptr.rs Add UniquePtr test 2020-04-09 23:44:23 -07:00