summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/ipa/ipa-bit-cp-2.c
blob: 42ce346948ca1f4b7964da60ccde736589cf5f6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do run } */
/* { dg-options "-O2 -w -fipa-bit-cp"  } */
static int
__attribute__ ((noinline))
test (int __attribute__((unused)) b, int a)
{
   if (!(a&2))
     link_error ();
}

extern int __attribute__((const)) getint ();

main()
{
  test (getint(), 2);
  test (getint(), 3);
  test (getint(), 6);
  return 0;
}