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
Rebase.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-direct-init.C
blob
7cc3f8f67013f4744c0533468f5ddb1b42af6626
1
// Test that capture by copy uses direct-initialization.
2
// { dg-do compile { target c++11 } }
3
4
struct A
5
{
6
A();
7
explicit A(const A&);
8
};
9
10
int main()
11
{
12
A a;
13
[a]{};
14
}