☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
constexpr-89074-2.C
☽
☼
gcc/testsuite/g++.dg/cpp1y/constexpr-89074-2.C
code
plain
raw
1
// PR c++/89074
2
// { dg-do compile { target c++14 } }
3
4
constexpr bool
5
foo ()
6
{
7
int a[] = { 1, 2 };
8
int b[] = { 3, 4 };
9
10
if (a + 0 == b + 0)
11
return false;
12
13
if (a + 1 == b + 0)
14
return false;
15
16
return true;
17
}
18
19
static_assert (foo (), "");