Pavel Kirienko 446577e4fb Test update
2014-08-21 23:22:12 +04:00

20 lines
544 B
C++

/*
* Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
*/
#include <gtest/gtest.h>
#include <uavcan/Timestamp.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, Timestamp)
{
using uavcan::Timestamp;
std::cout << &Timestamp::USEC_PER_LSB << std::endl;
std::cout << &Timestamp::UNKNOWN << std::endl;
}