view gcc/testsuite/gcc.dg/pr57773.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-options "-std=c99 -Wpedantic" } */

enum e { A };
struct { enum e b: 2; } s1;
struct { signed char b: 2; } s2;
struct { unsigned char b: 2; } s3;
struct { short b: 2; } s4;
struct { unsigned short b: 2; } s5;
struct { long int b: 2; } s6;
struct { unsigned long int b: 2; } s7;
struct { long long int b: 2; } s8;
struct { unsigned long long int b: 2; } s9;