Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/pr119428.c

raw
1 /* PR target/119428 */
2
3 __attribute__((noipa)) void
4 foo (unsigned int x, unsigned char *y)
5 {
6 y += x >> 3;
7 *y &= (unsigned char) ~(1 << (x & 0x07));
8 }
9
10 int
11 main ()
12 {
13 unsigned char buf[8];
14 __builtin_memset (buf, 0xff, 8);
15 foo (8, buf);
16 if (buf[1] != 0xfe)
17 __builtin_abort ();
18 }