aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/builtin-unreachable.c
blob: 91923a2dffca4452c2416c43306d77373b13649a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* This should return 1 without setting up a stack frame or
   jumping.  */
/* { dg-do compile } */
/* { dg-require-effective-target ia32 } */
/* { dg-options "-O2 -fomit-frame-pointer" } */
int h (char *p)
{
  if (*p)
    __builtin_unreachable ();
  return p ? 1 : 0;
}
/* { dg-final { scan-assembler-not "%e\[bs\]p" } } */
/* { dg-final { scan-assembler-not "\[\\t \]+j" } } */