2 /* { dg-require-weak "" } */
3 /* { dg-skip-if "No undefined" { *-*-mingw* } } */
4 /* { dg-skip-if "No undefined weak" { *-*-aix* } } */
5 /* { dg-skip-if "No undefined weak" { hppa*-*-hpux* && { ! lp64 } } } */
6 /* { dg-skip-if "No undefined weak" { nvptx-*-* } } */
7 /* { dg-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin* } } */
8 /* { dg-additional-options "-Wl,-flat_namespace" { target *-*-darwin[89]* } } */
14 int y(int a
) __attribute__ ((weak
));
18 int (*scan_func
)(int);