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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [20000209-1.c] - Diff between revs 298 and 338

Only display areas with differences | Details | Blame | View Log

Rev 298 Rev 338
/* { dg-do preprocess } */
/* { dg-do preprocess } */
 
 
/* Tests for line numbering around function-like macro calls.
/* Tests for line numbering around function-like macro calls.
   Bug found by Mark Mitchell.  */
   Bug found by Mark Mitchell.  */
 
 
#define f(x) x
#define f(x) x
#define g f
#define g f
 
 
f (3);
f (3);
#error here     /* { dg-error "here" "case 0" } */
#error here     /* { dg-error "here" "case 0" } */
 
 
f
f
  (3);
  (3);
#error here     /* { dg-error "here" "case 1" } */
#error here     /* { dg-error "here" "case 1" } */
 
 
(f
(f
  )(3);
  )(3);
#error here     /* { dg-error "here" "case 2" } */
#error here     /* { dg-error "here" "case 2" } */
 
 
g
g
  (3);
  (3);
#error here     /* { dg-error "here" "case 3" } */
#error here     /* { dg-error "here" "case 3" } */
 
 
(g
(g
  )(3);
  )(3);
#error here     /* { dg-error "here" "case 4" } */
#error here     /* { dg-error "here" "case 4" } */
 
 
f /* some
f /* some
     text */  (3);
     text */  (3);
#error here     /* { dg-error "here" "case 5" } */
#error here     /* { dg-error "here" "case 5" } */
 
 
(g /* some
(g /* some
      text */ )(3);
      text */ )(3);
#error here     /* { dg-error "here" "case 6" } */
#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.