Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/lambda/lambda-direct-init.C

raw
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 }