update compare-output test case to new for loop syntax

This commit is contained in:
Andrew Kelley
2023-02-18 15:56:29 -07:00
parent 74db8c2e83
commit e89bfedd8d

View File

@@ -196,7 +196,7 @@ pub fn addCases(cases: *tests.CompareOutputContext) void {
\\
\\ c.qsort(@ptrCast(?*anyopaque, &array), @intCast(c_ulong, array.len), @sizeOf(i32), compare_fn);
\\
\\ for (array) |item, i| {
\\ for (array, 0..) |item, i| {
\\ if (item != i) {
\\ c.abort();
\\ }