tradcpp testcase

Andreas Jaeger aj@suse.de
Mon Dec 11 12:34:00 GMT 2000


>>>>> Neil Booth writes:

 > Forgot to post this.
 > Neil.

 > 	* gcc.dg/cpp/defined_trad.c: New test.

 > Index: defined_trad.c
 > ===================================================================
 > RCS file: defined_trad.c
 > diff -N defined_trad.c
 > --- /dev/null	Tue May  5 13:32:27 1998
 > +++ defined_trad.c	Mon Dec 11 12:24:55 2000
 > @@ -0,0 +1,12 @@
 > +/* Copyright (C) 2000 Free Software Foundation, Inc.  */
 > +
 > +/* { dg-do preprocess } */
 > +/* { dg-options "-traditional" } */
 > +
 > +/* Tests tradcpp0 with defined.  */
 > +
 > +/*  Source: Neil Booth, 11 Dec 2000.  */
Source is glibc.

 > +
 > +#if defined REGPARMS
 > +#error REGPARMS should not be defined
 > +#endif

Please commit also the other testcase I've send - this lead to a
different error message.


/* Copyright (C) 2000 Free Software Foundation, Inc.  */

/* { dg-do preprocess } */
/* { dg-options "-traditional" } */

/* Tests tradcpp0 with defined.  */

/*  Source: Neil Booth, 11 Dec 2000.  */

#define REGPARMS 1
#if !defined REGPARMS
#error REGPARMS should be defined
#endif

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


More information about the Gcc-patches mailing list