From 628b18fb15ee3d6633c73d404f109d01f0a7ece2 Mon Sep 17 00:00:00 2001 From: Adam NAILI Date: Sun, 3 Jun 2018 13:37:00 +0200 Subject: .bss section management (globals) --- res/test_global.tpc | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 res/test_global.tpc (limited to 'res') 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 @@ +/* test-table-symboles.tpc */ + +/* Test file for simplified translator of a declaration of variables in C */ +entier r1,b,s,c,r2 ; +caractere letter, digit, punct; + +entier main(void) { + r1=12; + r2=13; + b = r1 + r2; + print(b); +} -- cgit v1.2.3