File: n_4.c

package info (click to toggle)
mcpp 2.7.2-1.1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 8,148 kB
  • sloc: ansic: 35,244; sh: 9,241; makefile: 176; cpp: 84; exp: 18
file content (20 lines) | stat: -rw-r--r-- 405 bytes parent folder | download | duplicates (9)
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;
}