Debian Codegraph @

gcc/testsuite/c-c++-common/ubsan/save-expr-3.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-fsanitize=shift -Wall -Werror -O" } */
3
4 int x;
5
6 int
7 foo (int i, int u)
8 {
9 return (i << u) << x;
10 }
11
12 int
13 bar (int i, int u)
14 {
15 return (i >> u) >> x;
16 }