Files
PX4-Autopilot/libuavcan/test/dsdl_test/dsdl_const_1.cpp
T

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;
}