diff options
Diffstat (limited to 'tests/unictype/test-categ_none.c')
-rw-r--r-- | tests/unictype/test-categ_none.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unictype/test-categ_none.c b/tests/unictype/test-categ_none.c index 436015ac62..e95feb670f 100644 --- a/tests/unictype/test-categ_none.c +++ b/tests/unictype/test-categ_none.c @@ -25,11 +25,18 @@ int main () { + /* This test cannot be compiled on platforms on which _UC_CATEGORY_NONE + is not exported from the libunistring shared library. For now, + MSVC is the only platform where this is a problem. */ +#if !defined _MSC_VER + uc_general_category_t ct = _UC_CATEGORY_NONE; unsigned int c; for (c = 0; c < 0x110000; c++) ASSERT (!uc_is_general_category (c, ct)); +#endif + return 0; } |