blob: 97cf398f64cd122185c77f3b0b05b1a485c587da [file] [log] [blame]
int line1;
int f = bob;
int bill(1);
int line4;
// { dg-do preprocess }
// { dg-options "-dD -include $srcdir/c-c++-common/cpp/line-2.h -nostdinc" }
// { dg-regexp {In file included from <command-line>:\n[^\n]*/line-2.h:4:2: error: #error wrong\n} }
// { dg-regexp {[^\n]*/line-2.c:3:11: error: macro "bill" passed 1 arguments, but takes just 0\nIn file included from <command-line>:\n[^\n]*/line-2.h:3: note: macro "bill" defined here\n} }