c++: robustify testcase [PR109752]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / constexpr-89074-2.C
blob6a088ee1d1da219798399c0e04cd01cfd7287210
1 // PR c++/89074
2 // { dg-do compile { target c++14 } }
4 constexpr bool
5 foo ()
7   int a[] = { 1, 2 };
8   int b[] = { 3, 4 };
10   if (a + 0 == b + 0)
11     return false;
13   if (a + 1 == b + 0)
14     return false;
16   return true;
19 static_assert (foo (), "");