source: translator/examples/test.c @ 93885663

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change on this file since 93885663 was 51b7345, checked in by Peter A. Buhr <pabuhr@…>, 10 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.