Michael Forster | 523dbd4 | 2021-10-12 11:05:44 +0000 | [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 | |
| 5 | #ifndef CRUBIT_RS_BINDINGS_FROM_CC_TEST_GOLDEN_UNSUPPORTED_H_ |
| 6 | #define CRUBIT_RS_BINDINGS_FROM_CC_TEST_GOLDEN_UNSUPPORTED_H_ |
| 7 | |
Devin Jeanpierre | e6e1665 | 2021-12-22 15:54:46 +0000 | [diff] [blame] | 8 | struct NontrivialCustomType final { |
Devin Jeanpierre | bf0d560 | 2021-10-13 20:47:39 +0000 | [diff] [blame] | 9 | NontrivialCustomType(NontrivialCustomType&&); |
| 10 | |
Michael Forster | 523dbd4 | 2021-10-12 11:05:44 +0000 | [diff] [blame] | 11 | int i; |
| 12 | }; |
| 13 | |
Devin Jeanpierre | bf0d560 | 2021-10-13 20:47:39 +0000 | [diff] [blame] | 14 | void UnsupportedParamType(NontrivialCustomType n); |
Devin Jeanpierre | bf0d560 | 2021-10-13 20:47:39 +0000 | [diff] [blame] | 15 | NontrivialCustomType UnsupportedReturnType(); |
Michael Forster | 523dbd4 | 2021-10-12 11:05:44 +0000 | [diff] [blame] | 16 | |
Devin Jeanpierre | bf0d560 | 2021-10-13 20:47:39 +0000 | [diff] [blame] | 17 | NontrivialCustomType MultipleReasons(NontrivialCustomType n, int); |
Michael Forster | 523dbd4 | 2021-10-12 11:05:44 +0000 | [diff] [blame] | 18 | |
Googler | c8a8e73 | 2021-10-19 07:49:24 +0000 | [diff] [blame] | 19 | namespace ns { |
| 20 | void FunctionInNamespace(); |
Devin Jeanpierre | e6e1665 | 2021-12-22 15:54:46 +0000 | [diff] [blame] | 21 | struct StructInNamespace final {}; |
Googler | c8a8e73 | 2021-10-19 07:49:24 +0000 | [diff] [blame] | 22 | } // namespace ns |
| 23 | |
Devin Jeanpierre | e6e1665 | 2021-12-22 15:54:46 +0000 | [diff] [blame] | 24 | struct ContainingStruct final { |
| 25 | struct NestedStruct final {}; |
Googler | 21351fc | 2021-10-19 08:58:04 +0000 | [diff] [blame] | 26 | }; |
| 27 | |
Michael Forster | 523dbd4 | 2021-10-12 11:05:44 +0000 | [diff] [blame] | 28 | #endif // CRUBIT_RS_BINDINGS_FROM_CC_TEST_GOLDEN_UNSUPPORTED_H_ |