aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr100576.c
blob: f16a8224c6ea05fc9062bcac4b3b622f65cd32d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-require-effective-target non_strict_prototype } */

/* PR middle-end/100576 */

const char v[] = {0x12};

void
foo (const char *p)
{
  int b = sizeof v;
  int n = memcmp (p, v, b);
  if (n)
    __builtin_abort ();
}