| // 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 | |
| #ifndef THIRD_PARTY_CRUBIT_RS_BINDINGS_FROM_CC_TEST_STRUCT_INHERITANCE_INHERITED_METHODS_H_ | |
| #define THIRD_PARTY_CRUBIT_RS_BINDINGS_FROM_CC_TEST_STRUCT_INHERITANCE_INHERITED_METHODS_H_ | |
| #pragma clang lifetime_elision | |
| struct Nonmovable { | |
| Nonmovable() = default; | |
| Nonmovable(Nonmovable&&) = delete; | |
| Nonmovable& operator=(Nonmovable&&) = delete; | |
| }; | |
| struct Base { | |
| bool has_bindings() const { return true; } | |
| void no_bindings(Nonmovable) const {} | |
| }; | |
| struct Derived : Base {}; | |
| #endif // THIRD_PARTY_CRUBIT_RS_BINDINGS_FROM_CC_TEST_STRUCT_INHERITANCE_INHERITED_METHODS_H_ |