summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr33697.c
blob: 8c5edb65853341b761c0fe968ecc2c80bfdd2934 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */

/* We used to ICE for this with type-checking enabled.  */

typedef signed short gint16;
typedef unsigned short guint16;
gint16 dissect_old_pflog(gint16 rnr)
{
  return (guint16) ((guint16) ((guint16)rnr >> 8) | (guint16) ((guint16)rnr << 8));
}