File: pr56566.c

package info (click to toggle)
gcc-arm-none-eabi 15%3A8-2019-q3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 571,828 kB
  • sloc: ansic: 2,937,651; cpp: 881,644; ada: 597,189; makefile: 65,528; asm: 56,499; xml: 46,621; exp: 24,747; sh: 19,684; python: 7,256; pascal: 4,370; awk: 3,497; perl: 2,695; yacc: 316; ml: 285; f90: 234; lex: 198; objc: 194; haskell: 119
file content (14 lines) | stat: -rw-r--r-- 641 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR c/56566 */
/* { dg-do compile } */
/* { dg-options "" } */

struct S1 { enum E1 { N1 = -1, Z1 = 0 } e : 1; };
struct S2 { enum E2 { N2 = -1 } e : 1; };
struct S3 { enum E3 { Z3 = 0 } e : 1; };
struct S4 { enum E4 { N4 = -2, Z4 = 1 } e : 2; };
struct S5 { enum E5 { N5 = -3, Z5 = 1 } e : 3; };
struct S6 { enum E6 { N6 = -2, Z6 = 1 } e : 1; }; // { dg-warning "too small|narrower" }
struct S7 { enum E7 { N7 = -3, Z7 = 1 } e : 2; }; // { dg-warning "too small|narrower" }
struct S8 { enum E8 { Z8 = 1 } e : 1; };
struct S9 { enum E9 { Z9 = 2 } e : 2; };
struct S0 { enum E0 { Z0 = 2 } e : 1; };	  // { dg-warning "too small|narrower" }