27 lines
388 B
C++
Raw Normal View History

2014-08-03 19:52:23 +02:00
#ifdef Type_Is_
2016-07-09 11:21:54 +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
2016-07-09 11:21:54 +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
2016-07-09 11:21:54 +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)
#error No expected definition present
#endif
void foo(void)
{
}