source: translator/examples/identity.c @ ea3eb06

aaron-thesisarm-ehcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerresolv-newstringwith_gc
Last change on this file since ea3eb06 was ea3eb06, checked in by Peter A. Buhr <pabuhr@…>, 8 years ago

formatting changes

  • Property mode set to 100644
File size: 203 bytes
Line 
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.