projects
/
cdsspec-compiler.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add detailed generated code examples
[cdsspec-compiler.git]
/
test.c
1
#include <stdio.h>
2
#include "test.h"
3
#include "test.h"
4
5
struct pair {
6
int x, y;
7
};
8
9
struct pair p[] = {{1,2}, {2,3}};
10
11
enum E {
12
a, b, c
13
};
14
const int inte = 3;
15
void _foo(struct Test t) {
16
for (int i = 0; i < 10; i++) {
17
int j;
18
}
19
printf("%d\n", t.x);
20
}
21
22
void foo(struct Test t) {
23
int num[] = {5, 3};
24
_foo(t);
25
}
26
27
void func() {
28
}
29
30
int main() {
31
printf("%d\n", b);
32
return 0;
33
}