Skip to content

Commit

Permalink
Guarantee compiler can't optimize away descriptor_table_plant_2eproto…
Browse files Browse the repository at this point in the history
… and wpi::proto::_ProtobufDCMotor_default_instance_
  • Loading branch information
KangarooKoala committed Dec 29, 2023
1 parent db2acc3 commit 6877c2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wpimath/src/test/quick_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ int main(int arc, char** argv) {
return 2;
}

if (!&descriptor_table_plant_2eproto) {
if (descriptor_table_plant_2eproto.size != 192) {
return 3;
}

if (!&wpi::proto::_ProtobufDCMotor_default_instance_) {
if (wpi::proto::_ProtobufDCMotor_default_instance_._instance.nominal_voltage() != 0) {

Check failure on line 34 in wpimath/src/test/quick_test.cpp

View workflow job for this annotation

GitHub Actions / Build - Windows

use of undefined type 'wpi::proto::ProtobufDCMotorDefaultTypeInternal'
return 4;
}

Expand Down

0 comments on commit 6877c2c

Please sign in to comment.