c++: Fix cpp0x/lambda/lambda-nested9.C with C++11
commitb903e0f3adef830c4e2eef79040d213088e7332f
authorMarek Polacek <polacek@redhat.com>
Fri, 19 Nov 2021 19:54:18 +0000 (19 14:54 -0500)
committerMarek Polacek <polacek@redhat.com>
Fri, 19 Nov 2021 19:59:12 +0000 (19 14:59 -0500)
tree4d1450c24dbe83b0b35eb30b70cd816d27044883
parentd4943ce939d9654932624b9ece24c3a474ae4157
c++: Fix cpp0x/lambda/lambda-nested9.C with C++11

Unfortunately dejagnu doesn't honor #if/#endif, so this test was failing
with -std=c++11:

FAIL: g++.dg/cpp0x/lambda/lambda-nested9.C  -std=c++11  (test for errors, line 37)

Fixed thus.

gcc/testsuite/ChangeLog:

* g++.dg/cpp0x/lambda/lambda-nested9.C: Adjust dg-error.
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nested9.C