blob: 02728e2f8d11c78100a6745de71d3e98a477c286 [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.
#ifndef TOOLS_CLANG_PLUGINS_TESTS_UNSAFE_LIBC_CALLS_NOT_CLEAN_H_
#define TOOLS_CLANG_PLUGINS_TESTS_UNSAFE_LIBC_CALLS_NOT_CLEAN_H_
#include <system_string.h>
inline void* disallowed_bad_memcpy(int* i, unsigned s) {
return memcpy(i, &s, sizeof(s)); // Should generate a warning.
}
#endif // TOOLS_CLANG_PLUGINS_TESTS_UNSAFE_LIBC_CALLS_NOT_CLEAN_H_