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
Remove not needed __builtin_expect due to malloc predictor.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
pr63996.C
blob
2e8cab58a7a0c3c0f9cab66afc2d527a0813cc7f
1
// { dg-do compile { target c++14 } }
2
// { dg-additional-options "-Wno-return-type" }
3
4
constexpr int
5
foo (int i)
6
{
7
int a[i] = { }; // { dg-error "forbids variable length" }
8
}
9
10
constexpr int j = foo (1); // { dg-error "flows off the end|in .constexpr. expansion of" }