Руслан Урядинский / libuavcan

Dependents:   UAVCAN UAVCAN_Subscriber

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers dsdl_const_1.cpp Source File

dsdl_const_1.cpp

00001 /*
00002  * Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
00003  */
00004 
00005 #include <gtest/gtest.h>
00006 #include <uavcan/Timestamp.hpp>
00007 
00008 /*
00009  * Objective of this test is to make sure that the generated types are being linked correcly.
00010  * This test requests the address of some static const member variables to make sure that there
00011  * will be no duplicated symbol linking errors.
00012  */
00013 TEST(DsdlConst1, Timestamp)
00014 {
00015     using uavcan::Timestamp;
00016 
00017     std::cout << &Timestamp::UNKNOWN << std::endl;
00018 }