projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
disable experimental code for now
[libfirm]
/
ir
/
be
/
test
/
trivial_extern_add.c
1
/*
2
* loads/stores from/to variables
3
* Shows the sel node
4
*/
5
#include <stdio.h>
6
7
int a;
8
int b;
9
int c;
10
11
void add_a_and_b_to_c(void)
12
{
13
c = a + b;
14
}
15
16
int main(int argc, char *argv[])
17
{
18
a = 1;
19
b = 42;
20
add_a_and_b_to_c();
21
printf("%d\n", c);
22
return 0;
23
}