source: translator/examples/identity.c @ d11f789

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 d11f789 was ea3eb06, checked in by Peter A. Buhr <pabuhr@…>, 10 years ago

formatting changes

  • Property mode set to 100644
File size: 203 bytes
RevLine 
[a0d9f94]1extern "C" {
2    int printf( const char *fmt, ... );
3}
4
5forall( type T )
6T identity( T t ) {
7    return t;
8}
9
10int main() {
11    printf( "result of identity of 5 is %d\n", identity( 5 ) );
12    return 0;
13}
Note: See TracBrowser for help on using the repository browser.