summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr22311-1.c
blob: 4eec5ce9a25072877cb521f88e499fb6fa2a4f23 (plain)
1
2
3
4
5
6
/* Bug 22311: ICE with -fshort-enums on shortened operations.  */
/* { dg-do compile } */
/* { dg-options "-fshort-enums" } */

typedef enum { A = 1 } E;
void f(E e, unsigned char c) { c |= e; }