aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/pr113673.C
blob: 11489777f5b9459b69eb9076efa9c49203455de7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-Os -fnon-call-exceptions -ftrapv" } */

struct s { ~s(); };
void
h (unsigned char *data, int c)
{
  s a1;
  while (c)
    {
      int m = *data++ << 8;
      m += *data++;
    }
}