blob: 3732e5361d927efece43b8fb1266b904c4547def [file] [log] [blame]
// 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(int i)
: int_field(i) {}
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() {}