llvm-project/libcxx/test/std/localization
Muiez Ahmed 049f6c29a6 [libc++] Resolve missing table_size symbol
The aim of this patch is to resolve the missing `table_size` symbol (see reduced test case). That const variable is declared and defined in //libcxx/include/locale//; however, the test case suggests that the symbol is missing. This is due to a C++ pitfall (highlighted [[ https://quuxplusone.github.io/blog/2020/09/19/value-or-pitfall/ | here ]]). In summary, assigning the reference of `table_size` doesn't enforce the const-ness and expects to find `table_size` in the DLL. The fix is to use `constexpr` or have an out-of-line definition in the src (for consistency).

Differential Revision: https://reviews.llvm.org/D110647
2021-11-18 15:49:45 -05:00
..
c.locales [libc++] Remove support for CloudABI, which has been abandoned 2021-08-24 14:11:32 -04:00
locale.categories [libc++] Resolve missing table_size symbol 2021-11-18 15:49:45 -05:00
locale.stdcvt [libc++] Add an option to disable wide character support in libc++ 2021-10-12 06:08:23 -04:00
locale.syn Support tests in freestanding 2019-02-04 20:31:13 +00:00
locales [libcxx] [test] Narrow down XFAILs regarding a MSVC mode specific bug to "windows-dll && msvc" 2021-11-05 21:43:29 +02:00
localization.general Support tests in freestanding 2019-02-04 20:31:13 +00:00
lit.local.cfg [libc++] Add a libc++ configuration that does not support localization 2020-10-27 14:56:30 -04:00