dsdl_const_1.cpp 488 B

123456789101112131415161718
  1. /*
  2. * Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
  3. */
  4. #include <gtest/gtest.h>
  5. #include <uavcan/Timestamp.hpp>
  6. /*
  7. * Objective of this test is to make sure that the generated types are being linked correcly.
  8. * This test requests the address of some static const member variables to make sure that there
  9. * will be no duplicated symbol linking errors.
  10. */
  11. TEST(DsdlConst1, Timestamp)
  12. {
  13. using uavcan::Timestamp;
  14. std::cout << &Timestamp::UNKNOWN << std::endl;
  15. }