27 lines
414 B
C++
Raw Normal View History

2014-08-03 19:52:23 +02:00
#ifdef Type_Is_
2018-08-09 18:06:22 +02:00
# if !Result
# error Result should be 1 in WARN mode
# endif
2014-08-03 19:52:23 +02:00
#endif
#ifdef Type_Is_NEW
2018-08-09 18:06:22 +02:00
# if Result
# error Result should be 0 in NEW mode
# endif
2014-08-03 19:52:23 +02:00
#endif
#ifdef Type_Is_OLD
2018-08-09 18:06:22 +02:00
# if !Result
# error Result should be 1 in OLD mode
# endif
2014-08-03 19:52:23 +02:00
#endif
#if !defined(Type_Is_) && !defined(Type_Is_OLD) && !defined(Type_Is_NEW)
2018-08-09 18:06:22 +02:00
# error No expected definition present
2014-08-03 19:52:23 +02:00
#endif
void foo(void)
{
}