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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [20000209-2.c] - Rev 154

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

/* { dg-do compile } */
/* { dg-options "-Wall" } */
/* Distilled from glibc sources.  Tests preprocessor corner cases.
   Since it uses rest args, we must turn off -pedantic-errors.  */
 
#define NO_PAREN(rest...) rest
#define DEFINE_CATEGORY(category, items) \
const int _nl_value_type_##category[] = { NO_PAREN items }
 
DEFINE_CATEGORY
(
 LC_COLLATE,
 (
   1,
   2,
   3,
  ));
 
DEFINE_CATEGORY(LC_CTYPE, (1, 2, 3));
 

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

powered by: WebSVN 2.1.0

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