testsuite: fix lambda-decltype3.C in C++11
commit08354f5c46c4443c347fd048dd3b1115b14e705d
authorMarek Polacek <polacek@redhat.com>
Sat, 11 Nov 2023 00:36:17 +0000 (10 19:36 -0500)
committerMarek Polacek <polacek@redhat.com>
Sat, 11 Nov 2023 00:36:40 +0000 (10 19:36 -0500)
tree5d35165472dcc5591b533c51b45c742f358cf1c9
parente0c1476d5d7c450b1b16a40364cea4e91237ea93
testsuite: fix lambda-decltype3.C in C++11

This fixes
FAIL: g++.dg/cpp0x/lambda/lambda-decltype3.C  -std=c++11 (test for excess errors)
due to
lambda-decltype3.C:25:6: error: lambda capture initializers only available with '-std=c++14' or '-std=gnu++14' [-Wc++14-extensions]

gcc/testsuite/ChangeLog:

* g++.dg/cpp0x/lambda/lambda-decltype3.C: Check __cpp_init_captures.
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-decltype3.C