Changeset c11e31c for translator/examples/identity.c
- Timestamp:
- May 14, 2015, 1:44:55 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 4bf5298
- Parents:
- d4778a6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/examples/identity.c
rd4778a6 rc11e31c 9 9 ofstream *sout = ofstream_stdout(); 10 10 char c = 'a'; 11 c = identity( c ); 11 12 sout << c << ' ' << identity( c ) << '\n'; 12 13 int i = 5; 14 i = identity( i ); 13 15 sout << i << ' ' << identity( i ) << '\n'; 14 16 double d = 3.2; 17 d = identity( d ); 15 18 sout << d << ' ' << identity( d ) << '\n'; 16 19 }
Note: See TracChangeset
for help on using the changeset viewer.