aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/weak-8.c
blob: 9cfb51706aaa7ab0037c4521d010cc5ce13f24b5 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do assemble } */

/* COFF does not support weak, and dg doesn't support UNSUPPORTED.  */
/* { dg-do assemble { xfail *-*-coff i?86-pc-cygwin h8300-*-hms } } */

__attribute__ ((weak)) int i;

int f() {
  return i;
}