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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [enum-1.c] - Diff between revs 149 and 154

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
typedef enum
typedef enum
{
{
  END = -1,
  END = -1,
  EMPTY = (1 << 8 ) ,
  EMPTY = (1 << 8 ) ,
  BACKREF,
  BACKREF,
  BEGLINE,
  BEGLINE,
  ENDLINE,
  ENDLINE,
  BEGWORD,
  BEGWORD,
  ENDWORD,
  ENDWORD,
  LIMWORD,
  LIMWORD,
  NOTLIMWORD,
  NOTLIMWORD,
  QMARK,
  QMARK,
  STAR,
  STAR,
  PLUS,
  PLUS,
  REPMN,
  REPMN,
  CAT,
  CAT,
  OR,
  OR,
  ORTOP,
  ORTOP,
  LPAREN,
  LPAREN,
  RPAREN,
  RPAREN,
  CSET
  CSET
} token;
} token;
 
 
static token tok;
static token tok;
 
 
static int
static int
atom ()
atom ()
{
{
  if ((tok >= 0 && tok < (1 << 8 ) ) || tok >= CSET || tok == BACKREF
  if ((tok >= 0 && tok < (1 << 8 ) ) || tok >= CSET || tok == BACKREF
      || tok == BEGLINE || tok == ENDLINE || tok == BEGWORD
      || tok == BEGLINE || tok == ENDLINE || tok == BEGWORD
      || tok == ENDWORD || tok == LIMWORD || tok == NOTLIMWORD)
      || tok == ENDWORD || tok == LIMWORD || tok == NOTLIMWORD)
    return 1;
    return 1;
  else
  else
    return 0;
    return 0;
}
}
 
 
main ()
main ()
{
{
  tok = 0;
  tok = 0;
  if (atom () != 1)
  if (atom () != 1)
    abort ();
    abort ();
  exit (0);
  exit (0);
}
}
 
 

powered by: WebSVN 2.1.0

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