| // 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 |
| //! This crate is used as a test input for `cc_bindings_from_rs` and the |
| //! generated C++ bindings are then tested via `structs_test.cc`. |
| pub fn create_repr_c_point_via_free_function(x: i32, y: i32) -> ReprCPoint { |
| pub fn get_x_of_repr_c_point_via_free_function(p: ReprCPoint) -> i32 { |
| pub struct DefaultReprPoint { |
| pub fn create_default_repr_point_via_free_function(x: i32, y: i32) -> DefaultReprPoint { |
| DefaultReprPoint { x, y } |
| pub fn get_x_of_default_repr_point_via_free_function(p: DefaultReprPoint) -> i32 { |