Fix vector of table with naked ptr (#8830)

* create test that fails to compile

* fix the issue

* add test body

* force commit gneerated header

* build failures

* fix bazel some more
This commit is contained in:
Justin Davis
2025-12-07 14:05:54 -05:00
committed by GitHub
parent 7711e84919
commit 541dd1a8f5
9 changed files with 446 additions and 3 deletions

View File

@@ -58,6 +58,7 @@
#include "native_type_test_generated.h"
#include "test_assert.h"
#include "util_test.h"
#include "vector_table_naked_ptr_test.h"
void FlatBufferBuilderTest();
@@ -1723,6 +1724,7 @@ int FlatBufferTests(const std::string& tests_data_path) {
FixedLengthArraySpanTest(tests_data_path);
DoNotRequireEofTest(tests_data_path);
JsonUnionStructTest();
VectorTableNakedPtrTest();
#else
// Guard against -Wunused-parameter.
(void)tests_data_path;