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
/cp
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
lambda-init5.C
blob
1b287a16888c6d63eba8e6d25974ecabc1297f66
1
// Test for paren and brace initializers
2
// { dg-do run { target c++14 } }
3
4
#include <initializer_list>
5
6
int main()
7
{
8
if ([x(42)]{ return x; }() != 42) __builtin_abort();
9
if ([x{24}]{ return x; }() != 24) __builtin_abort();
10
}