source: translator/examples/hello.c@ a0d9f94

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 a0d9f94 was 51b73452, checked in by Peter A. Buhr <pabuhr@…>, 11 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.