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-3.c] - Diff between revs 149 and 154

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

Rev 149 Rev 154
/* The composite type of int and an enum compatible with int might be
/* The composite type of int and an enum compatible with int might be
   either of the two types, but it isn't an unsigned type.  */
   either of the two types, but it isn't an unsigned type.  */
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
 
 
#include <limits.h>
#include <limits.h>
 
 
#include <stdio.h>
#include <stdio.h>
 
 
extern void abort (void);
extern void abort (void);
extern void exit (int);
extern void exit (int);
 
 
enum e { a = INT_MIN };
enum e { a = INT_MIN };
 
 
int *p;
int *p;
enum e *q;
enum e *q;
int
int
main (void)
main (void)
{
{
  enum e x = a;
  enum e x = a;
  q = &x;
  q = &x;
  if (*(1 ? q : p) > 0)
  if (*(1 ? q : p) > 0)
    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.