diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2019-07-22 19:05:21 +0100 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2019-07-22 19:05:21 +0100 |
commit | a9a7b03ba6557a6f9c8c8b284d907d6a7017e989 (patch) | |
tree | c629144b62899209f6e7b4755afa8561bce27f66 /Examples/test-suite/li_std_wstring_inherit.i | |
parent | 5131096b8035891e241e954124a3f048163a188f (diff) | |
download | swig-a9a7b03ba6557a6f9c8c8b284d907d6a7017e989.tar.gz |
Split testcases li_std_wstring.i and li_std_wstring_inherit.i
Not many languages have support for std_wstring.i, so disable testing
for these languages until added.
Diffstat (limited to 'Examples/test-suite/li_std_wstring_inherit.i')
-rw-r--r-- | Examples/test-suite/li_std_wstring_inherit.i | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/Examples/test-suite/li_std_wstring_inherit.i b/Examples/test-suite/li_std_wstring_inherit.i index 547c41a87..54c6bd8c4 100644 --- a/Examples/test-suite/li_std_wstring_inherit.i +++ b/Examples/test-suite/li_std_wstring_inherit.i @@ -3,12 +3,6 @@ %include <std_wstring.i> -// throw is invalid in C++17 and later, only SWIG to use it -#define TESTCASE_THROW1(T1) throw(T1) -%{ -#define TESTCASE_THROW1(T1) -%} - %inline %{ struct A : std::wstring @@ -30,78 +24,10 @@ struct B }; - -wchar_t test_wcvalue(wchar_t x) { - return x; -} - -const wchar_t* test_ccvalue(const wchar_t* x) { - return x; -} - -wchar_t* test_cvalue(wchar_t* x) { - return x; -} - - -wchar_t* test_wchar_overload() { - return 0; -} - -wchar_t* test_wchar_overload(wchar_t *x) { - return x; -} - std::wstring test_value(std::wstring x) { return x; } -const std::wstring& test_const_reference(const std::wstring &x) { - return x; -} - -void test_pointer(std::wstring *x) { -} - -std::wstring *test_pointer_out() { - static std::wstring x = L"x"; - return &x; -} - -void test_const_pointer(const std::wstring *x) { -} - -const std::wstring *test_const_pointer_out() { - static std::wstring x = L"x"; - return &x; -} - -void test_reference(std::wstring &x) { -} - -std::wstring& test_reference_out() { - static std::wstring x = L"x"; - return x; -} - -bool test_equal_abc(const std::wstring &s) { - return L"abc" == s; -} - -void test_throw() TESTCASE_THROW1(std::wstring){ - static std::wstring x = L"x"; - - throw x; -} - -const char * non_utf8_c_str() { - return "h\xe9llo"; -} - -size_t size_wstring_size(const std::wstring& s) { - return s.size(); -} - #ifdef SWIGPYTHON_BUILTIN bool is_python_builtin() { return true; } #else |