OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix lookup of initialized captures in unevaluated context.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-direct-init.C
1
// Test that capture by copy uses direct-initialization.
2
// { dg-options "-std=c++0x" }
3
4
struct A
5
{
6
A();
7
explicit A(const A&);
8
};
9
10
int main()
11
{
12
A a;
13
[a]{};
14
}