OSDN Git Service

gcc/testsuite
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / cpp / line4.c
1 /* { dg-do compile } */
2
3 /* Test #line with and without macros for the line number.  */
4
5 extern void abort (void);
6
7 #define L 90
8
9 #line 44
10 enum { i = __LINE__ };
11
12 #line L
13 enum { j = __LINE__ };
14
15 #line 16  /* N.B. the _next_ line is line 16.  */
16
17 char array1[i        == 44 ? 1 : -1];
18 char array2[j        == 90 ? 1 : -1];
19 char array3[__LINE__ == 19 ? 1 : -1];