diff options
author | Marek Polacek <polacek@redhat.com> | 2021-11-19 14:54:18 -0500 |
---|---|---|
committer | Marek Polacek <polacek@redhat.com> | 2021-11-19 14:59:12 -0500 |
commit | b903e0f3adef830c4e2eef79040d213088e7332f (patch) | |
tree | 4d1450c24dbe83b0b35eb30b70cd816d27044883 | |
parent | d4943ce939d9654932624b9ece24c3a474ae4157 (diff) |
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.
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nested9.C | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nested9.C b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nested9.C index ff7da3b0ce1..8f67f225b13 100644 --- a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nested9.C +++ b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nested9.C @@ -34,7 +34,7 @@ int main() { #if __cpp_init_captures [j=0] () { [&] () mutable { - ++j; // { dg-error "read-only" } + ++j; // { dg-error "read-only" "" { target c++14 } } }; }; #endif |