summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/builtin-unreachable-3.c
blob: 6ad69261e1dc7e7f61b0e2a0d711e759b178c947 (plain)
1
2
3
4
5
6
7
8
9
/* Check that a function containing only __builtin_unreachable()
   doesn't ICE.  */
/* { dg-do compile } */
/* { dg-options "-O2" } */
const char *
f (void)
{
  __builtin_unreachable ();
}