mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-22 20:47:36 +08:00
21 lines
606 B
C++
21 lines
606 B
C++
/*
|
|
* Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
|
|
*/
|
|
|
|
#include <gtest/gtest.h>
|
|
#include <uavcan/FigureOfMerit.hpp>
|
|
|
|
/*
|
|
* Objective of this test is to make sure that the generated types are being linked correcly.
|
|
* This test requests the address of some static const member variables to make sure that there
|
|
* will be no duplicated symbol linking errors.
|
|
*/
|
|
TEST(DsdlConst1, FigureOfMerit)
|
|
{
|
|
using uavcan::FigureOfMerit;
|
|
|
|
std::cout << &FigureOfMerit::MAX << std::endl;
|
|
std::cout << &FigureOfMerit::MIN << std::endl;
|
|
std::cout << &FigureOfMerit::UNKNOWN << std::endl;
|
|
}
|