Changeset ea3eb06 for translator/examples/test.c
- Timestamp:
- Nov 22, 2014, 4:51:46 PM (10 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- d11f789
- Parents:
- 3c70d38
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/examples/test.c
r3c70d38 rea3eb06 1 // "cfa -c -o test.o test.c"2 // "cfa -CFA test.c > test_out.c"3 // "gcc31 -c test_out.c -o test.o"4 5 1 #include "fstream.h" 6 2 #include "vector_int.h" 7 3 8 int 9 main() 10 { 11 ofstream *sout = ofstream_stdout(); 12 vector_int vec = vector_int_allocate(); 13 int index; 14 switch(1) { 15 case 1: 16 sout << vec[ index ]; 17 } 18 sout << "\n"; 19 return 0; 4 int main() { 5 ofstream *sout = ofstream_stdout(); 6 vector_int vec = vector_int_allocate(); 7 int index; 8 switch(1) { 9 case 1: 10 sout << vec[ index ]; 11 } 12 sout << "\n"; 20 13 }
Note: See TracChangeset
for help on using the changeset viewer.