aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/pr84826.c
blob: 563ce51b76f8de3cd4a01e344435b3cff9d2c802 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-require-effective-target arm_thumb2_ok } */
/* { dg-options "-Ofast -fstack-check" } */

void d (void *);

void a ()
{
  int b;
  void bar (int c)
  {
    if (__builtin_expect (c, 0))
      ++b;
  }
  d (bar);
}