Rosica Dejanovska | dd9a903 | 2022-04-12 07:34:41 -0700 | [diff] [blame] | 1 | // Part of the Crubit project, under the Apache License v2.0 with LLVM |
| 2 | // Exceptions. See /LICENSE for license information. |
| 3 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 4 | |
Lukasz Anforowicz | 19e057d | 2022-10-28 12:03:23 -0700 | [diff] [blame^] | 5 | // Automatically @generated Rust bindings for the following C++ target: |
| 6 | // //rs_bindings_from_cc/test/golden:namespace_cc |
| 7 | |
Rosica Dejanovska | dd9a903 | 2022-04-12 07:34:41 -0700 | [diff] [blame] | 8 | #include <cstddef> |
| 9 | #include <memory> |
| 10 | |
| 11 | #include "rs_bindings_from_cc/support/cxx20_backports.h" |
Lukasz Anforowicz | 4ee9c22 | 2022-04-13 09:33:36 -0700 | [diff] [blame] | 12 | #include "rs_bindings_from_cc/support/offsetof.h" |
Rosica Dejanovska | dd9a903 | 2022-04-12 07:34:41 -0700 | [diff] [blame] | 13 | #include "rs_bindings_from_cc/test/golden/namespace.h" |
| 14 | |
| 15 | #pragma clang diagnostic push |
| 16 | #pragma clang diagnostic ignored "-Wthread-safety-analysis" |
| 17 | extern "C" void __rust_thunk___ZN23test_namespace_bindings1SC1Ev( |
Lukasz Anforowicz | d4742ff | 2022-07-11 17:05:02 -0700 | [diff] [blame] | 18 | struct test_namespace_bindings::S* __this) { |
Lukasz Anforowicz | 07b3390 | 2022-07-13 15:27:03 -0700 | [diff] [blame] | 19 | crubit::construct_at(__this); |
Rosica Dejanovska | dd9a903 | 2022-04-12 07:34:41 -0700 | [diff] [blame] | 20 | } |
Devin Jeanpierre | 5641325 | 2022-06-02 18:48:24 -0700 | [diff] [blame] | 21 | extern "C" void __rust_thunk___ZN23test_namespace_bindings1SC1EOS0_( |
Lukasz Anforowicz | d4742ff | 2022-07-11 17:05:02 -0700 | [diff] [blame] | 22 | struct test_namespace_bindings::S* __this, |
Lukasz Anforowicz | 07b3390 | 2022-07-13 15:27:03 -0700 | [diff] [blame] | 23 | struct test_namespace_bindings::S* __param_0) { |
| 24 | crubit::construct_at(__this, std::move(*__param_0)); |
Devin Jeanpierre | 5641325 | 2022-06-02 18:48:24 -0700 | [diff] [blame] | 25 | } |
Rosica Dejanovska | a08b386 | 2022-06-02 08:22:49 -0700 | [diff] [blame] | 26 | extern "C" void |
| 27 | __rust_thunk___ZN23test_namespace_bindings15inline_functionEv() { |
| 28 | test_namespace_bindings::inline_function(); |
| 29 | } |
Rosica Dejanovska | 6efd17f | 2022-05-11 08:09:57 -0700 | [diff] [blame] | 30 | extern "C" void __rust_thunk___ZN32test_namespace_bindings_reopened5inner1SC1Ev( |
Lukasz Anforowicz | d4742ff | 2022-07-11 17:05:02 -0700 | [diff] [blame] | 31 | struct test_namespace_bindings_reopened::inner::S* __this) { |
Lukasz Anforowicz | 07b3390 | 2022-07-13 15:27:03 -0700 | [diff] [blame] | 32 | crubit::construct_at(__this); |
Rosica Dejanovska | 6efd17f | 2022-05-11 08:09:57 -0700 | [diff] [blame] | 33 | } |
| 34 | extern "C" void |
Devin Jeanpierre | 5641325 | 2022-06-02 18:48:24 -0700 | [diff] [blame] | 35 | __rust_thunk___ZN32test_namespace_bindings_reopened5inner1SC1EOS1_( |
Lukasz Anforowicz | d4742ff | 2022-07-11 17:05:02 -0700 | [diff] [blame] | 36 | struct test_namespace_bindings_reopened::inner::S* __this, |
Lukasz Anforowicz | 07b3390 | 2022-07-13 15:27:03 -0700 | [diff] [blame] | 37 | struct test_namespace_bindings_reopened::inner::S* __param_0) { |
| 38 | crubit::construct_at(__this, std::move(*__param_0)); |
Devin Jeanpierre | 5641325 | 2022-06-02 18:48:24 -0700 | [diff] [blame] | 39 | } |
Rosica Dejanovska | 4180ffe | 2022-06-09 06:01:05 -0700 | [diff] [blame] | 40 | extern "C" void |
| 41 | __rust_thunk___ZN30test_namespace_bindings_inline5inner23StructInInlineNamespaceC1Ev( |
Lukasz Anforowicz | d4742ff | 2022-07-11 17:05:02 -0700 | [diff] [blame] | 42 | struct test_namespace_bindings_inline::inner::StructInInlineNamespace* |
Rosica Dejanovska | 4180ffe | 2022-06-09 06:01:05 -0700 | [diff] [blame] | 43 | __this) { |
Lukasz Anforowicz | 07b3390 | 2022-07-13 15:27:03 -0700 | [diff] [blame] | 44 | crubit::construct_at(__this); |
Rosica Dejanovska | 4180ffe | 2022-06-09 06:01:05 -0700 | [diff] [blame] | 45 | } |
| 46 | extern "C" void |
Rosica Dejanovska | 4180ffe | 2022-06-09 06:01:05 -0700 | [diff] [blame] | 47 | __rust_thunk___ZN30test_namespace_bindings_inline5inner23StructInInlineNamespaceC1EOS1_( |
Lukasz Anforowicz | d4742ff | 2022-07-11 17:05:02 -0700 | [diff] [blame] | 48 | struct test_namespace_bindings_inline::inner::StructInInlineNamespace* |
Rosica Dejanovska | 4180ffe | 2022-06-09 06:01:05 -0700 | [diff] [blame] | 49 | __this, |
Lukasz Anforowicz | 07b3390 | 2022-07-13 15:27:03 -0700 | [diff] [blame] | 50 | struct test_namespace_bindings_inline::inner::StructInInlineNamespace* |
Rosica Dejanovska | 4180ffe | 2022-06-09 06:01:05 -0700 | [diff] [blame] | 51 | __param_0) { |
Lukasz Anforowicz | 07b3390 | 2022-07-13 15:27:03 -0700 | [diff] [blame] | 52 | crubit::construct_at(__this, std::move(*__param_0)); |
Rosica Dejanovska | 4180ffe | 2022-06-09 06:01:05 -0700 | [diff] [blame] | 53 | } |
Lukasz Anforowicz | 4e2e016 | 2022-09-01 07:07:32 -0700 | [diff] [blame] | 54 | extern "C" void __rust_thunk___ZN4impl3fooEv() { impl::foo(); } |
Rosica Dejanovska | dd9a903 | 2022-04-12 07:34:41 -0700 | [diff] [blame] | 55 | |
Lukasz Anforowicz | d4742ff | 2022-07-11 17:05:02 -0700 | [diff] [blame] | 56 | static_assert(sizeof(struct test_namespace_bindings::S) == 4); |
| 57 | static_assert(alignof(struct test_namespace_bindings::S) == 4); |
| 58 | static_assert(CRUBIT_OFFSET_OF(i, struct test_namespace_bindings::S) == 0); |
Rosica Dejanovska | dd9a903 | 2022-04-12 07:34:41 -0700 | [diff] [blame] | 59 | |
Lukasz Anforowicz | d4742ff | 2022-07-11 17:05:02 -0700 | [diff] [blame] | 60 | static_assert(sizeof(struct test_namespace_bindings_reopened::inner::S) == 1); |
| 61 | static_assert(alignof(struct test_namespace_bindings_reopened::inner::S) == 1); |
Rosica Dejanovska | 6efd17f | 2022-05-11 08:09:57 -0700 | [diff] [blame] | 62 | |
Lukasz Anforowicz | d4742ff | 2022-07-11 17:05:02 -0700 | [diff] [blame] | 63 | static_assert(sizeof(struct test_namespace_bindings_inline::inner:: |
| 64 | StructInInlineNamespace) == 1); |
| 65 | static_assert(alignof(struct test_namespace_bindings_inline::inner:: |
| 66 | StructInInlineNamespace) == 1); |
Rosica Dejanovska | 4180ffe | 2022-06-09 06:01:05 -0700 | [diff] [blame] | 67 | |
Rosica Dejanovska | dd9a903 | 2022-04-12 07:34:41 -0700 | [diff] [blame] | 68 | #pragma clang diagnostic pop |