testsuite: Fix g++.dg/opt/pr102970.C
commitcd389e5f9447d21084abff5d4b7db6cf1da74e57
authorMarek Polacek <polacek@redhat.com>
Thu, 4 Nov 2021 00:39:32 +0000 (3 20:39 -0400)
committerMarek Polacek <polacek@redhat.com>
Thu, 4 Nov 2021 00:40:28 +0000 (3 20:40 -0400)
tree6e98c5b2a2e8d268d0d48d8d7f696bcda8c72593
parent18ae471f7b9b70cdcf92adc87c98674490cdbe7f
testsuite: Fix g++.dg/opt/pr102970.C

This test uses a generic lambda, only available since C++14, so don't
run it in earlier modes.

gcc/testsuite/ChangeLog:

* g++.dg/opt/pr102970.C: Only run in C++14 and up.
gcc/testsuite/g++.dg/opt/pr102970.C