summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/weak/weak-8.c
blob: 3de2e1e2fa18c0c0bd45505c0d78e111e8d49c38 (plain)
1
2
3
4
5
6
7
8
/* { dg-do assemble } */
/* { dg-require-weak "" } */

__attribute__ ((weak)) int i;

int f() {
  return i;
}