source: translator/examples/test.c@ 1ead581

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors ctor deferred_resn demangler enum forall-pointer-decay gc_noraii jacob/cs343-translation jenkins-sandbox memory new-ast new-ast-unique-expr new-env no_list persistent-indexer pthread-emulation qualifiedEnum resolv-new string with_gc
Last change on this file since 1ead581 was 51b73452, checked in by Peter A. Buhr <pabuhr@…>, 11 years ago

initial commit

  • Property mode set to 100644
File size: 335 bytes
Line 
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#include "fstream.h"
6#include "vector_int.h"
7
8int
9main()
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;
20}
Note: See TracBrowser for help on using the repository browser.