aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr15236.c
blob: 9b92489738daee342069ecdc7708920642d22a2e (plain)
1
2
3
4
5
6
7
8
9
/* PR 15236: pedantic switch modifies treatment of non-ISO compliant
   enumerations.  */
/* { dg-do compile } */
/* { dg-options "-std=gnu17 -Wall -Wextra -pedantic-errors -Wconversion" } */
typedef enum OMX_ERRORTYPE
{
  OMX_ErrorNone = 0,
  OMX_ErrorInsufficientResources = 0x80001000 /* { dg-error "ISO C restricts enumerator values to range of .int." } */
} OMX_ERRORTYPE;