projects
/
ccan
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
New asort routine; unf. breaks under -Wmissing-prototypes etc :(
[ccan]
/
ccan
/
asort
/
test
/
compile_fail-context-type.c
1
#include <ccan/asort/asort.h>
2
#include <ccan/asort/asort.c>
3
4
static int cmp(char *const *a, char *const *b, int *flag)
5
{
6
return 0;
7
}
8
9
int main(int argc, char **argv)
10
{
11
#ifdef FAIL
12
char flag;
13
#if !HAVE_TYPEOF
14
#error "Unfortunately we don't fail if no typeof."
15
#endif
16
#else
17
int flag;
18
#endif
19
asort(argv+1, argc-1, cmp, &flag);
20
return 0;
21
}