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 63afee0 was b1d6dd5, checked in by Peter A. Buhr <pabuhr@…>, 10 years ago |
fix parsing error for EOF message, change cfa-ccp -x flag to -v, regression testing third attempt: consolidate example programs
|
-
Property mode
set to
100644
|
File size:
286 bytes
|
Line | |
---|
1 | int ?=?( int *, int );
|
---|
2 | int ?*?( int, int );
|
---|
3 |
|
---|
4 | forall( type T | { T ?*?( T, T ); } )
|
---|
5 | T square( T t ) {
|
---|
6 | return t * t;
|
---|
7 | }
|
---|
8 |
|
---|
9 | forall( type U | { U square( U ); } )
|
---|
10 | U quad( U u ) {
|
---|
11 | return square( square( u ) );
|
---|
12 | }
|
---|
13 |
|
---|
14 | void f() {
|
---|
15 | quad( 7 );
|
---|
16 | }
|
---|
17 |
|
---|
18 | // Local Variables: //
|
---|
19 | // tab-width: 4 //
|
---|
20 | // End: //
|
---|
Note:
See
TracBrowser
for help on using the repository browser.