| 1 |
# 0 ".../line-1.c" |
| 2 |
# 0 "<built-in>" |
| 3 |
# 0 "<command-line>" |
| 4 |
# 1 "./line-2.h" 1 |
| 5 |
#define bob 1 |
| 6 |
|
| 7 |
#define bill() 2 |
| 8 |
#error wrong |
| 9 |
# 0 "<command-line>" 2 |
| 10 |
# 1 ".../line-3.c" |
| 11 |
int line1; |
| 12 |
int f = bob; |
| 13 |
int bill(1); |
| 14 |
int line4; |
| 15 |
|
| 16 |
// { dg-regexp {In file included from <command-line>:\n[^\n]*/line-2.h:4:2: error: #error wrong\n} } |
| 17 |
|
| 18 |
// { dg-regexp {[^\n]*/line-3.c:3:11: error: macro 'bill' passed 1 arguments, but takes just 0\n[^\n]*/line-2.h:3:9: note: macro 'bill' defined here\n} } |
| 19 |
|
| 20 |
// { dg-options "-fpreprocessed -fdirectives-only" } |