aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/nvptx/weak.c
blob: a756b95c3c84c44e2bfeaafce2aac3f3740ef0c5 (plain)
1
2
3
4
5
6
7
8
9

extern int __attribute__((weak)) decl;  /* { dg-error "weak declarations" } */
int __attribute__((weak)) defn;

int Foo ()
{
  return decl + defn;
}