summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/nonzero-1.c
blob: c9d438e937491d2ec7c4868f37b536352d1a7da4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O2 -fdelete-null-pointer-checks" } */
/* { dg-require-weak "" } */

/* { dg-skip-if "" keeps_null_pointer_checks } */
extern int a; /* { dg-error "declared weak after being used" } */
int
t()
{
  return &a!=0;
}
extern int a __attribute__ ((weak));