summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr42461.c
blob: 0518bfd97368cc4622c3198f33d3b48dc7af4575 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR rtl-optimization/42461 */
/* Reported by Patrick Pelissier <patrick.pelissier@gmail.com> */

/* { dg-do link } */
/* { dg-options "-O2" } */

extern int link_failure (int) __attribute__ ((pure));

int main (void)
{
  if (link_failure (0) < 1)
    __builtin_unreachable ();
  return 0;
}