summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.dg/attr-weakref-2.c
blob: 75cc0779c5771bba70da914d839207e984a506ba (plain)
1
2
3
4
5
6
7
/* { dg-do compile } */
/* { dg-require-weak "" } */

typedef int vtype;

extern vtype wv1;
extern vtype Wv1a __attribute__((weakref ("wv1"))); /* { dg-error "weakref 'Wv1a' must have static linkage" } */
OpenPOWER on IntegriCloud