1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-14 09:03:50 +01:00
RIOT/tests/sys/cpp_ctors/tests-cpp_ctors.h
Marian Buschsieweke f8029e8891
tests/sys: use SPDX copyright tags
Co-authored-by: crasbe <crasbe@gmail.com>
2025-11-22 08:48:27 +01:00

46 lines
693 B
C++

/*
* SPDX-FileCopyrightText: 2016-2017 Eistec AB
* SPDX-License-Identifier: LGPL-2.1-only
*/
#pragma once
/**
* @addtogroup unittests
* @{
*
* @file
* @brief Unittests for C++ constructors
*
* @author Joakim Nohlgård <joakim.nohlgard@eistec.se>
*/
#ifdef __cplusplus
extern "C" {
/* static test complains if this is not there */
}
#endif
#ifdef __cplusplus
namespace RIOTTestCPP {
/**
* @brief Simple class used for testing constructor calls
*/
class MyClass {
private:
volatile long var;
public:
MyClass();
explicit MyClass(long value);
long value();
void inc();
};
}
#endif
/** @} */