Skip to content

Commit 2cea7e2

Browse files
committed
fixing thetest case
1 parent e421a1c commit 2cea7e2

File tree

1 file changed

+1
-1
lines changed
  • gcc/testsuite/g++.dg/contracts/cpp26

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// check that we do not crash when capturing a constified entity in a contract assertion lambda
22
// { dg-do compile }
33
// { dg-options "-std=c++2b -fcontracts -fcontracts-nonattr " }
4-
void f(int i, int j) pre( [il = i, jl = &j](){ return true;} ( ))
4+
void f(int i, int j) pre( [i, &j](){ return true;} ( ))
55
{
66
};

0 commit comments

Comments
 (0)