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
Add __builtion_unreachable to vector::size(), vector::capacity()
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
constexpr-array4.C
blob
fc0104703594326ea7570d1e2a3cf8217926ded9
1
// { dg-do compile { target c++14 } }
2
3
constexpr bool g()
4
{
5
int ar[4] = { 1, 2, 3, 4 };
6
auto e1 = ar;
7
auto e4 = ar+3;
8
return (e4-e1) == 3;
9
}
10
11
#define SA(X) static_assert((X),#X)
12
SA(g());