view gcc/testsuite/gcc.c-torture/execute/pr91632.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
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;
}