blob: f2de5ac7a54979ebd288dae8e3405a2bba12315b [file] [log] [blame]
// Part of the Crubit project, under the Apache License v2.0 with LLVM
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
// Automatically @generated Rust bindings for the following C++ target:
// //rs_bindings_from_cc/test/golden:friend_functions_cc
// Features: experimental, supported
#include "support/internal/cxx20_backports.h"
#include "support/internal/offsetof.h"
#include "support/internal/sizeof.h"
#include <cstddef>
#include <memory>
// Public headers of the C++ library being wrapped.
#include "rs_bindings_from_cc/test/golden/friend_functions.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wthread-safety-analysis"
static_assert(sizeof(class SomeClass) == 1);
static_assert(alignof(class SomeClass) == 1);
extern "C" void __rust_thunk___ZN9SomeClassC1Ev(class SomeClass* __this) {
crubit::construct_at(__this);
}
extern "C" void __rust_thunk___ZN9SomeClassC1EOS_(class SomeClass* __this,
class SomeClass* __param_0) {
crubit::construct_at(__this, std::move(*__param_0));
}
extern "C" class SomeClass* __rust_thunk___ZN9SomeClassaSERKS_(
class SomeClass* __this, const class SomeClass* __param_0) {
return &__this->operator=(*__param_0);
}
extern "C" class SomeClass* __rust_thunk___ZN9SomeClassaSEOS_(
class SomeClass* __this, class SomeClass* __param_0) {
return &__this->operator=(std::move(*__param_0));
}
extern "C" void __rust_thunk___Z11visible_val9SomeClass(
class SomeClass* __param_0) {
visible_val(std::move(*__param_0));
}
extern "C" int __rust_thunk___Z21multiple_declarationsRK9SomeClass(
const class SomeClass* __param_0) {
return multiple_declarations(*__param_0);
}
#pragma clang diagnostic pop