Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/cpp/line4.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
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]; |