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
/
lambda-init3.C
blob
49ebde7ff6beda778a1e0aec5e743a9c3268f608
1
// N3648: capture init at non-block scope
2
// { dg-options "-w" }
3
// { dg-do run { target c++14 } }
4
5
int i = 42;
6
int j = [x=i]{ return x; }();
7
8
int main()
9
{
10
if (j != 42) __builtin_abort();
11
}