OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [20000209-1.c] - Blame information for rev 754

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.