blob: 1d02ccc7f2e0dbaf048858e57a53c96cea38dbcb [file] [log] [blame]
// { dg-do compile { target c++20 } }
// PR libstdc++/110167 - excessive compile time when optimizing std::to_array
#include <array>
constexpr int N = 512 * 512;
std::array<int, N>
make_std_array(int (&a)[N])
{
return std::to_array(a);
}