aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr111818.c
blob: a7a91111d717f49509cc9f3c87076d2fc22e727d (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */

static void foo(const volatile unsigned int x, void *p)
{
  __builtin_memcpy(p, (void *)&x, sizeof x);
}

void bar(void *number)
{
  foo(0, number);
}