summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr27150-1.c
blob: 5a00cf9f90fb7cf6536553a483c90a0eaedbbf02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do link } */
/* { dg-options "-O2" } */
extern int link_error ();
int g(int f)
{
  int a = ((&f)!=0);
  if (!a) link_error ();
  return a;
}

int main()
{
  g(10);
}