diff --git a/src/tests/end2end/ComputeLayoutMemoryBufferTests.cpp b/src/tests/end2end/ComputeLayoutMemoryBufferTests.cpp index 93f47d3d42..68bfd4f5d2 100644 --- a/src/tests/end2end/ComputeLayoutMemoryBufferTests.cpp +++ b/src/tests/end2end/ComputeLayoutMemoryBufferTests.cpp @@ -196,11 +196,11 @@ struct Status { fn main() { if (input.header != {input_header_code}u) { status.code = {status_bad_input_header}u; - } elseif (input.footer != {input_footer_code}u) { + } else if (input.footer != {input_footer_code}u) { status.code = {status_bad_input_footer}u; - } elseif (input.data.header != {data_header_code}u) { + } else if (input.data.header != {data_header_code}u) { status.code = {status_bad_data_header}u; - } elseif (input.data.footer != {data_footer_code}u) { + } else if (input.data.footer != {data_footer_code}u) { status.code = {status_bad_data_footer}u; } else { status.code = {status_ok}u; diff --git a/src/tests/end2end/ComputeSharedMemoryTests.cpp b/src/tests/end2end/ComputeSharedMemoryTests.cpp index ee27977dea..65410aebec 100644 --- a/src/tests/end2end/ComputeSharedMemoryTests.cpp +++ b/src/tests/end2end/ComputeSharedMemoryTests.cpp @@ -132,16 +132,16 @@ TEST_P(ComputeSharedMemoryTests, AssortedTypes) { wg_struct.m = mat2x2( vec2(f32(i), f32(i + 1u)), vec2(f32(i + 2u), f32(i + 3u))); - } elseif (LocalInvocationID.x == 1u) { + } else if (LocalInvocationID.x == 1u) { wg_matrix = mat2x2( vec2(f32(i), f32(i + 1u)), vec2(f32(i + 2u), f32(i + 3u))); - } elseif (LocalInvocationID.x == 2u) { + } else if (LocalInvocationID.x == 2u) { wg_array[0u] = i; wg_array[1u] = i + 1u; wg_array[2u] = i + 2u; wg_array[3u] = i + 3u; - } elseif (LocalInvocationID.x == 3u) { + } else if (LocalInvocationID.x == 3u) { wg_vector = vec4( f32(i), f32(i + 1u), f32(i + 2u), f32(i + 3u)); }