view gcc/testsuite/gcc.c-torture/execute/pr91632.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 1830386684a0
children
line wrap: on
line source

/* PR tree-optimization/91632 */
/* { dg-additional-options "-fwrapv" } */

static int
__attribute__((noipa))
foo (char x)
{
  switch (x)
    {
    case '"':
    case '<':
    case '>':
    case '\\':
    case '^':
    case '`':
    case '{':
    case '|':
    case '}':
      return 0;
    }
  return 1;
}

int
main ()
{
  if (foo ('h') == 0)
    __builtin_abort ();
  return 0;
}