Commit Graph

2 Commits

Author SHA1 Message Date
Arseny Kapoulkine
1e5ff28a12 Fix 2017-06-22 22:55:55 -07:00
Arseny Kapoulkine
0fff224d72 tests: Add -fshort-wchar tests
These tests are very tricky - in general -fshort-wchar is a dangerous
option because, since the standard library is not compiled with it, you
can't use any functions from either C or C++ standard library without
getting ABI mismatch.

The reason we want to use this is to do coverage testing on UTF32->UTF16
and UTF16->UTF32 conversion paths, that generally aren't hit on
gcc/clang. To do this, we carefully work around any internal calls to
wcslen/wcscmp that pugixml might be doing and don't use any wstring
functions.
2017-06-22 22:51:41 -07:00