Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/cpp/line4.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 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]; |