]> pd.if.org Git - lice/blob - tests/line.c
autocommit for files dated 2014-11-17 20:13:36
[lice] / tests / line.c
1 // line continuation
2
3 int \
4 main \
5 ( \
6     void // \
7         \
8     // one empty space to compensate
9 ) { \
10     int \
11     a   \
12     =   \
13     0,  \
14     *b  \
15     =   \
16     &a; \
17
18     expecti(*b, a); // line continuation should make the above
19                     // int a=0,*b=&a;
20
21     /* \
22      * \
23      * \\ int *e=b; /
24      */
25
26     // would error if int *e made it as code
27     int e = 0; // \
28         comments  \
29         comments  \
30         e = 1;
31
32     expecti(e, 0); // error if e = 1 made it
33
34     return e;   // e == 0 (success)
35 }