repo.or.cz
/
tinycc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add input files/libs and reloc_output switch to TCCState
[tinycc.git]
/
examples
/
ex_weak.c
blob
2a2bd19c32b0f83905cd24e87b0d8d4b460047dd
1
#! /usr/local/bin/tcc -run
2
#include <tcclib.h>
3
4
extern
void
weak_f
(
void
)
__attribute__
((
weak
));
5
6
int
main
()
7
{
8
if
(
weak_f
) {
9
weak_f
();
10
}
11
}