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 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 | |
---|
5 | extern "C" { |
---|
6 | int printf( const char*, ... ); |
---|
7 | } |
---|
8 | |
---|
9 | #include "fstream.h" |
---|
10 | |
---|
11 | int 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.