aboutsummaryrefslogtreecommitdiff
path: root/examples/ex_weak.c
blob: 2a2bd19c32b0f83905cd24e87b0d8d4b460047dd (plain)
1
2
3
4
5
6
7
8
9
10
11
#! /usr/local/bin/tcc -run
#include <tcclib.h>

extern void weak_f (void) __attribute__ ((weak));

int main ()
{
    if (weak_f) {
        weak_f();
    }
}