Alessandro Bonazzi e075990ed3 Patch level : 12.0 no-patch
Files correlati     :
Commento            :

Aggiunto il preprocessore c++ mcpp per sostituire il compilatore nella compilazione delle maschere.
2020-11-28 16:24:08 +01:00

25 lines
471 B
C

/* n_21.c: Tokenization (No preprocessing tokens are merged implicitly). */
#include "defs.h"
main( void)
{
int a = 1, x = 2, y = -3;
fputs( "started\n", stderr);
/* 21.1: */
#define MINUS -
assert( -MINUS-a == -1);
/* 21.2: */
#define sub( a, b) a-b /* '(a)-(b)' is better */
#define Y -y /* '(-y)' is better */
/* x- -y */
assert( sub( x, Y) == -1);
fputs( "success\n", stderr);
return 0;
}