summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20040220-1.c
blob: 8a4a5ba6d0f020547cd1e269708ad042f6a2f26c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR 14194 */

int irqs;

static inline __attribute__((always_inline))
int kstat_irqs (void) {
  int i, sum = 0;
  for (i = 0; i < 1; i++)
    if (__builtin_expect(i, 0))
      sum += irqs;
  return sum;
}

int show_interrupts (void) {
  return kstat_irqs ();
}