| // 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_GOLDEN_UNIONS_H_ |
| #define THIRD_PARTY_CRUBIT_RS_BINDINGS_FROM_CC_TEST_GOLDEN_UNIONS_H_ |
| #pragma clang lifetime_elision |
| struct Nontrivial final { |
| Nontrivial(Nontrivial&&); |
| struct TriviallyCopyableButNontriviallyDestructible { |
| TriviallyCopyableButNontriviallyDestructible( |
| const TriviallyCopyableButNontriviallyDestructible&) = default; |
| ~TriviallyCopyableButNontriviallyDestructible() {} |
| long long long_long_field; |
| Nontrivial nontrivial_member; |
| TriviallyCopyableButNontriviallyDestructible nontrivial_member; |
| union UnionWithOpaqueField { |
| char constant_array_field_not_yet_supported[42]; |
| struct TrivialButInheritable { |
| union UnionWithInheritable { |
| } TypedefUnionWithInheritable; |
| #endif // THIRD_PARTY_CRUBIT_RS_BINDINGS_FROM_CC_TEST_GOLDEN_UNIONS_H_ |