projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added getter for non address mode heuristic.
[libfirm]
/
ir
/
be
/
test
/
alloca.c
1
#ifdef _WIN32
2
#include <malloc.h>
3
#else
4
#include <alloca.h>
5
#endif
6
7
#include <stdio.h>
8
9
struct x {
10
int a, b;
11
};
12
13
static void t(struct x *p)
14
{
15
printf("%d\n", p->a + p->b);
16
}
17
18
static void t2()
19
{
20
char *mem;
21
22
printf("hallo\n");
23
mem = alloca(23);
24
25
printf("%.0s", mem);
26
}
27
28
int main(int argc, char *argv[])
29
{
30
struct x *p = alloca(sizeof(*p));
31
32
p->a = argc;
33
p->b = 3;
34
35
t(p);
36
t2();
37
38
return 0;
39
}