summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/special/weak-2.c
blob: b93a8ef9a529f10f781adbe2f486dea890ba0730 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do run } */
/* { dg-require-weak "" } */
/* { dg-additional-sources "weak-2a.c weak-2b.c" } */

#include <stdlib.h>

extern int foo(void);

int main(void) {

    if (foo())
        exit(0);
    else
        abort();
}