repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
c++: robustify testcase [PR109752]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
constexpr-89074-2.C
blob
6a088ee1d1da219798399c0e04cd01cfd7287210
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 (), "");