summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/lto/ipacp_1.c
blob: 69c1ec6e983cedcc811447ef8a3ee0b76b278e48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
void abort (void);
extern int a;

__attribute__ ((noinline))
void
clone_me (int *ptr)
{
  if (ptr != &a)
    abort ();
  if (!__builtin_constant_p (ptr != &a))
    abort ();
}