aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr107618.c
blob: 9e73cc1f1a17ec3b36e991f63603e338e3ae58cd (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-Og" } */

void a(void) __attribute__((__warning__("")));
int main(void)
{
  unsigned long b = __builtin_object_size(0, 0);
  if (__builtin_expect(b < 1, 0))
    a(); /* { dg-bogus "warning" } */
}