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

index cf5b0ed..2acb3c2 100644 (file)
@@ -1,5 +1,5 @@
 // { dg-do run }
-// { dg-require-effective-target c++11 }
+// { dg-require-effective-target c++14 }
 // { dg-options "-O2 -funroll-loops -fno-tree-vectorize" }
 
 #include <vector>