Debian Codegraph @

gcc/testsuite/g++.dg/ubsan/pr80386.C

raw
1 // PR sanitizer/80386
2 // { dg-do run }
3 // { dg-options "-fsanitize=undefined -fno-sanitize-recover" }
4
5 static unsigned long long int i = 13996271126042720493ULL;
6
7 int
8 main ()
9 {
10 int r = (((2921 + 0) - short(i)) + 0x7fffffff) >> 0;
11 asm volatile ("" : "+g" (r));
12 return 0;
13 }