summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/analyzer/pr105252.c
blob: a093eababc55912fe9f76fbd4fe9ea0a505538fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-additional-options "-fnon-call-exceptions -O" } */

typedef unsigned char C;
typedef unsigned char __attribute__((__vector_size__ (4))) V;

C m;

static inline void
bar (C c, V v, V *r)
{
  v %= (c | v) % m;
  *r = v;
}

void
foo (void)
{
  V x;
  bar (0, (V){2}, &x);
}