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

#include <stdlib.h>

extern int foo(void);

int main(void) {

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