13 lines
338 B
Perl
13 lines
338 B
Perl
|
/* n_8.t: #error directive. */
|
||
|
|
||
|
/* 8.1: Argument of #error directive is not a subject of macro expansion.
|
||
|
Output to stderr as an example:
|
||
|
Preprocessing error directive: MACRO is not a positive number.
|
||
|
from line 10 of file "n_8.t"
|
||
|
*/
|
||
|
#define MACRO 0
|
||
|
#if MACRO <= 0
|
||
|
#error MACRO is not a positive number.
|
||
|
#endif
|
||
|
|