blob: 958baa4b7e931b377f6854792e3054b49b7a09d5 [file] [log] [blame]
// Copyright 2025 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <array>
int UnsafeIndex();
// Expected rewrite:
// inline constexpr auto kArray = std::to_array<int>({0, 1, 2, 3, 4});
inline constexpr auto kArray = std::to_array<int>({0, 1, 2, 3, 4});
int UnsafeFunction() {
return kArray[UnsafeIndex()];
}