blob: cecb913751ff56eef2b0d5f71da66872f9b81e33 [file]
// 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
#include "rs_bindings_from_cc/test/struct/constructors/constructors.h"
StructWithUserProvidedConstructors::StructWithUserProvidedConstructors()
: int_field(42) {}
StructWithUserProvidedConstructors::StructWithUserProvidedConstructors(
const StructWithUserProvidedConstructors& other)
: int_field(10000 + other.int_field) {}
StructWithPrivateConstructors::StructWithPrivateConstructors()
: int_field(42) {}
StructWithPrivateConstructors::StructWithPrivateConstructors(
const StructWithPrivateConstructors& other)
: int_field(1000 + other.int_field) {}
StructWithPrivateConstructors::StructWithPrivateConstructors(int i)
: int_field(i) {}
NonTrivialStructWithConstructors::NonTrivialStructWithConstructors()
: int_field(43) {}
NonTrivialStructWithConstructors::NonTrivialStructWithConstructors(int i)
: int_field(i) {}
NonTrivialStructWithConstructors::~NonTrivialStructWithConstructors() {}