summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/ffs-1.c
blob: da82e55805da7dc36c57ba6055baf180c3e4bef4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
__volatile int a = 0;

extern void abort (void);
extern void exit (int);

int
main (void)
{
  if (__builtin_ffs (a) != 0)
    abort ();
  exit (0);
}