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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr17844-1.c] - Rev 801

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

/* -fshort-enums should affect only the type with which an enum is
    compatible, not the type of the enumeration constants which should
    still be int.  Bug 17844.  */
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
/* { dg-do compile } */
/* { dg-options "-fshort-enums" } */
 
enum e { A, B };
 
enum e ev;
unsigned char uv;
enum e *ep = &uv;
unsigned char *up = &ev;
 
int i;
__typeof__(A) te;
int *ip = &te;
__typeof__(B) *tep = &i;
 
int x[((sizeof(A) == sizeof(int)) ? 1 : -1)];
 

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.