blob: 5504aa94a0e95866b474cfb5dfc47a52ba9e6930 [file] [log] [blame]
// 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.
#ifndef TOOLS_CLANG_PLUGINS_TESTS_UNSAFE_BUFFERS_NOT_CLEAN_H_
#define TOOLS_CLANG_PLUGINS_TESTS_UNSAFE_BUFFERS_NOT_CLEAN_H_
inline int disallowed_bad_stuff(int* i, unsigned s) {
return i[s]; // This header is checked and makes an error.
}
inline int disallowed_bad_stuff(std::unique_ptr<int[]>& i, unsigned s) {
return i[s]; // This header is checked and makes an error.
}
#endif // TOOLS_CLANG_PLUGINS_TESTS_UNSAFE_BUFFERS_NOT_CLEAN_H_