source: translator/examples/hello.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: 307 bytes
Line 
1// "cfa hello.c fstream.c iostream.o"
2// "cfa -CFA hello.c > hello.i"
3// "cfa hello.i fstream.i iostream.o"
4
5extern "C" {
6int printf( const char*, ... );
7}
8
9#include "fstream.h"
10
11int main() {
12  ofstream *sout = ofstream_stdout();
13  write( sout, "test\n", 5 );
14  sout << "Bonjour au monde!\n";
15  return 0;
16}
Note: See TracBrowser for help on using the repository browser.