https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109057
--- Comment #4 from Henry <hbucher at gmail dot com> --- Yes it is optimized away. Note that even in this case the entire static array is optimized away from the object file.
hbucher at gmail dot com via Gcc-bugs Tue, 07 Mar 2023 09:28:41 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109057
--- Comment #4 from Henry <hbucher at gmail dot com> --- Yes it is optimized away. Note that even in this case the entire static array is optimized away from the object file.