-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReturnBool.cpp
40 lines (30 loc) · 881 Bytes
/
ReturnBool.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* \file ReturnBool.cpp
* \brief Retun NO-value (as bool)
*/
#include <StdStream/StdStream.h>
#include <StdTest/StdTest.h>
#include <Stl.h>
//--------------------------------------------------------------------------------------------------
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wreturn-type"
bool
isValid()
{
// std::cout << "\nfunc: " << __FUNCTION__ << std::endl;
// return true;
}
#pragma GCC diagnostic pop
//-------------------------------------------------------------------------------------------------
int main(int, char **)
{
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wreturn-type"
std::cout << ::isValid() << std::endl;
#pragma GCC diagnostic pop
return 0;
}
//-------------------------------------------------------------------------------------------------
#if OUTPUT
145 // random value
#endif