Debian Codegraph @

gcc/testsuite/gcc.dg/ubsan/pr67279.c

raw
1 /* PR sanitizer/67279 */
2 /* { dg-do compile } */
3 /* { dg-options "-fsanitize=undefined -w" } */
4
5 #define INT_MIN (-__INT_MAX__ - 1)
6
7 void
8 foo (void)
9 {
10 static int a1 = 1 << 31;
11 static int a2 = 10 << 30;
12 static int a3 = 100 << 28;
13 static int a4 = INT_MIN / -1;
14 }