2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / line4.c
blob84dbf9623a24b8528b05307f9ed82eed6d42f2b6
1 /* { dg-do compile } */
3 /* Test #line with and without macros for the line number. */
5 extern void abort (void);
7 #define L 90
9 #line 44
10 enum { i = __LINE__ };
12 #line L
13 enum { j = __LINE__ };
15 #line 16 /* N.B. the _next_ line is line 16. */
17 char array1[i == 44 ? 1 : -1];
18 char array2[j == 90 ? 1 : -1];
19 char array3[__LINE__ == 19 ? 1 : -1];