From db2acc3e2688f2b6a9e6086cb2e2d4da07a909d8 Mon Sep 17 00:00:00 2001 From: Joseph Eng Date: Thu, 28 Dec 2023 16:21:24 -0800 Subject: [PATCH] Explicitly reference various exported members --- wpimath/src/test/quick_test.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/wpimath/src/test/quick_test.cpp b/wpimath/src/test/quick_test.cpp index eb818c40886..a3f10567849 100644 --- a/wpimath/src/test/quick_test.cpp +++ b/wpimath/src/test/quick_test.cpp @@ -22,5 +22,22 @@ int main(int arc, char** argv) { if (unpacked_data.nominalVoltage.value() != kExpectedData.nominalVoltage.value()) { return 1; } + + if (TableStruct_plant_2eproto::offsets[0] != ~0u) { + return 2; + } + + if (!&descriptor_table_plant_2eproto) { + return 3; + } + + if (!&wpi::proto::_ProtobufDCMotor_default_instance_) { + return 4; + } + + // google::protobuf::Arena::CreateMaybeMessage(&arena); + + wpi::proto::ProtobufDCMotor test; + return 0; }