]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/c-c++-common/cpp/line-4.c
preprocessor: Better line info for <builtin> & <command-line>
[gcc.git] / gcc / testsuite / c-c++-common / cpp / line-4.c
1 int line1;
2 int f = bob;
3 int b = bill();
4 int line4;
5
6 // { dg-do preprocess }
7 // { dg-options "-dD -include $srcdir/c-c++-common/cpp/line-4.h -nostdinc" }
8
9 // { dg-final { scan-file line-4.i {# 0 "[^\n]*/line-4.c"\n# 0 "<built-in>"\n} } }
10 // { dg-final { scan-file line-4.i {# 0 "<command-line>"\n# 1 "[^\n]*/line-4.h" 1\n#define bob 1\n} } }
11 // { dg-final { scan-file line-4.i {#define bill\(\) 2\n# 0 "<command-line>" 2\n# 1 "[^\n]*/line-4.c"\nint line1;\n} } }
This page took 0.038596 seconds and 5 git commands to generate.