Skip to content

Commit cb54dfd

Browse files
committed
Updated tests for C++11 lambda expression support
1 parent 3fd61b3 commit cb54dfd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test-out/epfl/test14-cgen2.check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ int32_t main(int32_t);
88
#include <string.h>
99
#include <stdbool.h>
1010
int32_t main(int32_t x0) {
11-
int32_t x1(int32_t x2,int32_t x3) {
11+
auto x1 = [&](int32_t x2,int32_t x3) {
1212
int32_t x4 = x2;
1313
bool x6 = x4 == 0;
1414
int32_t x12;
@@ -22,7 +22,7 @@ int32_t x10 = x4 * x9;
2222
x12 = x10;
2323
}
2424
return x12;
25-
}
25+
};
2626
int32_t x15 = x1(4,0);
2727
printf(string("Hello, world! %d\n").c_str(),x15);
2828
return 0;

0 commit comments

Comments
 (0)