Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-70001-3.C

raw
1 // PR c++/70001
2
3 // This is still slow to compile, only run it once.
4 // { dg-do compile { target c++14_only } }
5 // { dg-skip-if "requires hosted libstdc++ for complex" { ! hostedlib } }
6
7 #include <array>
8 #include <complex>
9
10 typedef std::complex<double> cd;
11
12 const int LOG = 17;
13 const int N = (1 << LOG);
14
15 std::array<cd, N> a;
16 std::array<cd, N> b;
17
18 void
19 foo (std::array<cd, N> &arr)
20 {
21 std::array<std::array<cd, N>, LOG + 1> f;
22 }
23
24 int
25 main ()
26 {
27 foo (a);
28 foo (b);
29 }