File: n_4.c

package info (click to toggle)
mcpp 2.7.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 8,024 kB
  • ctags: 29,151
  • sloc: ansic: 35,191; sh: 9,231; makefile: 176; cpp: 84; exp: 18
file content (20 lines) | stat: -rw-r--r-- 405 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* n_4.c:   Special tokens. */

#include    "defs.h"

main( void)
{
/* 4.1: Digraph spellings in directive line.    */
%: define  stringize( a)    %: a

    fputs( "started\n", stderr);

    assert( strcmp( stringize( abc), "abc") == 0);

/* 4.2: Digraph spellings are retained in stringization.    */
    assert( strcmp( stringize( <:), "<" ":") == 0);

    fputs( "success\n", stderr);
    return 0;
}