Debian Codegraph @

gcc/testsuite/gcc.dg/pr118376.c

raw
1 /* PR c/118376 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wsign-conversion" } */
4
5 unsigned x;
6
7 void
8 foo ()
9 {
10 __builtin_memset (&x, (long long) __builtin_stdc_rotate_right (x, 0), 1);
11 } /* { dg-warning "conversion to 'int' from 'long long int' may change the sign of the result" "" { target *-*-* } .-1 } */