* doc/extend.texi (Loop-Specific Pragmas): Document pragma GCC unroll.
[official-gcc.git] / gcc / testsuite / g++.dg / ext / constexpr-pr82781.C
blobeee0159351c899cb67122cbc14794ddc12642b4f
1 // PR c++/82781
2 // { dg-do compile { target c++11 } }
4 typedef int V __attribute__ ((vector_size (16)));
5 constexpr V b1 = { 0, 1, 10, 20 };
6 constexpr V b2 = { 0, 2, 10, 0 };
7 constexpr V b3 = b1 == b2;
9 static_assert (b3[0] == -1, "");
10 static_assert (b3[1] == 0, "");
11 static_assert (b3[2] == -1, "");
12 static_assert (b3[3] == 0, "");