Fix initialization in test (#1140)

* Suppress unsafe-buffer-usage
This commit is contained in:
d-winsor
2024-02-26 13:17:12 -08:00
committed by GitHub
parent caae4dd0f8
commit 1b4d42ca2e
4 changed files with 31 additions and 11 deletions
+1 -1
View File
@@ -333,7 +333,7 @@ TEST(span_test, from_array_constructor)
EXPECT_TRUE(s.data() == std::addressof(arr2d[0]));
}
int arr3d[2][3][2] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12};
int arr3d[2][3][2] = { { {1, 2}, {3, 4}, {5, 6} }, { {7, 8}, {9, 10}, {11, 12} } };
#ifdef CONFIRM_COMPILATION_ERRORS
{