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
[AArch64] Fix SVE testsuite failures for ILP32 (PR 83846)
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
constexpr-71537.C
blob
a1c9f4f26ab8ab6a17a1e97520cfd6a8debdfdd0
1
// PR c++/71537
2
// { dg-do compile { target c++14 } }
3
4
constexpr bool
5
foo ()
6
{
7
constexpr int n[42] = { 1 };
8
constexpr int o = n ? 1 : 0;
9
constexpr int p = n + 1 ? 1 : 0;
10
constexpr int q = "abc" + 1 ? 1 : 0;
11
return o + p + q == 3;
12
}
13
14
static_assert (foo (), "");