diff options
author | Adam NAILI | 2018-06-03 13:37:00 +0200 |
---|---|---|
committer | Adam NAILI | 2018-06-03 13:37:00 +0200 |
commit | 628b18fb15ee3d6633c73d404f109d01f0a7ece2 (patch) | |
tree | eff988eb57bfaa626eceee068461f3075b2b0cd7 /res | |
parent | 5ad57d142bcf05886c750018b067865fc97e13fe (diff) | |
download | tpc-compiler-628b18fb15ee3d6633c73d404f109d01f0a7ece2.tar.gz |
.bss section management (globals)
Diffstat (limited to 'res')
-rw-r--r-- | res/test_global.tpc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/res/test_global.tpc b/res/test_global.tpc new file mode 100644 index 0000000..789f290 --- /dev/null +++ b/res/test_global.tpc | |||
@@ -0,0 +1,12 @@ | |||
1 | /* test-table-symboles.tpc */ | ||
2 | |||
3 | /* Test file for simplified translator of a declaration of variables in C */ | ||
4 | entier r1,b,s,c,r2 ; | ||
5 | caractere letter, digit, punct; | ||
6 | |||
7 | entier main(void) { | ||
8 | r1=12; | ||
9 | r2=13; | ||
10 | b = r1 + r2; | ||
11 | print(b); | ||
12 | } | ||