* c-c++-common/array-init.c: Add dg-prune-output. * g++.dg/cpp0x/lambda/lambda-const-this.C: Add dg-warning. * g++.dg/cpp0x/lambda/lambda-in-class-neg.C: Likewise. * g++.dg/cpp0x/lambda/lambda-in-class.C: Likewise. * g++.dg/cpp0x/lambda/lambda-nested.C: Likewise. * g++.dg/cpp0x/lambda/lambda-nsdmi1.C: Likewise. * g++.dg/cpp0x/lambda/lambda-nsdmi4.C: Likewise. * g++.dg/cpp0x/lambda/lambda-this.C: Likewise. * g++.dg/cpp0x/lambda/lambda-this17.C: Likewise. * g++.dg/cpp0x/lambda/lambda-this18.C: Likewise. * g++.dg/cpp0x/lambda/lambda-this2.C: Likewise. * g++.dg/cpp0x/lambda/lambda-this8.C: Likewise. * g++.dg/cpp1y/pr64382.C: Likewise. * g++.dg/cpp1y/pr77739.C: Likewise. * g++.dg/cpp1z/lambda-this1.C: Likewise. * g++.dg/cpp1z/lambda-this2.C: Likewise. * g++.dg/template/crash84.C: Adjust dg-error. From-SVN: r264169
22 lines
451 B
C
22 lines
451 B
C
// PR c++/58481
|
|
// { dg-require-effective-target c++11 }
|
|
|
|
struct Test {
|
|
template<typename... Args> inline void triggerTest (Args&&... fargs) { }
|
|
};
|
|
|
|
struct TestPickled : Test {
|
|
template<typename... Args> void triggerTest (Args&&... fargs) {
|
|
[=](Args... as) { // { dg-warning "implicit capture" "" { target c++2a } }
|
|
Test::triggerTest (as...);
|
|
} ();
|
|
}
|
|
};
|
|
|
|
int main()
|
|
{
|
|
TestPickled test;
|
|
test.triggerTest ();
|
|
return 0;
|
|
}
|