Skip to content

Commit

Permalink
[C++] forgotten test
Browse files Browse the repository at this point in the history
  • Loading branch information
bakinovsky-m committed May 29, 2020
1 parent b9dc0c6 commit d23de8e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/native_type_test_generated.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(4) Vector3D FLATBUFFERS_FINAL_CLASS {
static const flatbuffers::TypeTable *MiniReflectTypeTable() {
return Vector3DTypeTable();
}
Vector3D() {
memset(static_cast<void *>(this), 0, sizeof(Vector3D));
Vector3D()
: x_(0),
y_(0),
z_(0)
{
}
Vector3D(float _x, float _y, float _z)
: x_(flatbuffers::EndianScalar(_x)),
Expand Down

0 comments on commit d23de8e

Please sign in to comment.