Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
constexpr-89074-2.C
blob: 6a088ee1d1da219798399c0e04cd01cfd7287210 [
file
] [
log
] [
blame
]
// PR c++/89074
// { dg-do compile { target c++14 } }
constexpr
bool
foo
()
{
int
a
[]
=
{
1
,
2
};
int
b
[]
=
{
3
,
4
};
if
(
a
+
0
==
b
+
0
)
return
false
;
if
(
a
+
1
==
b
+
0
)
return
false
;
return
true
;
}
static_assert
(
foo
(),
""
);