mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-19 14:29:07 +08:00
20 lines
544 B
C++
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;
|
|
}
|