blob: fe7105857e4c808a08722f872b9f33b989c7c54f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/* { dg-do preprocess } */
/* Tests for line numbering around function-like macro calls.
Bug found by Mark Mitchell. */
#define f(x) x
#define g f
f (3);
#error here /* { dg-error "here" "case 0" } */
f
(3);
#error here /* { dg-error "here" "case 1" } */
(f
)(3);
#error here /* { dg-error "here" "case 2" } */
g
(3);
#error here /* { dg-error "here" "case 3" } */
(g
)(3);
#error here /* { dg-error "here" "case 4" } */
f /* some
text */ (3);
#error here /* { dg-error "here" "case 5" } */
(g /* some
text */ )(3);
#error here /* { dg-error "here" "case 6" } */
|