// Copyright 2024 The Chromium Authors | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. | |
void fct() { | |
// Expected rewrite: | |
// auto buf = std::to_array<const char*>( | |
// {"\\,", "+++", "%%%2C", "@", "<empty>", ":::"}); | |
const char* buf[] = {"\\,", "+++", "%%%2C", "@", "<empty>", ":::"}; | |
int index = 0; | |
buf[index] = nullptr; | |
} |