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
        with_gc
      
      
        
          | Last change
 on this file since c738ca4 was             62edde5, checked in by Thierry Delisle <tdelisle@…>, 9 years ago | 
        
          | 
added new tests folder to replace existing one
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            283 bytes | 
      
      
| Rev | Line |  | 
|---|
| [62edde5] | 1 | //cforall context declaration | 
|---|
|  | 2 | context has_q( otype T ) { | 
|---|
|  | 3 | T q( T ); | 
|---|
|  | 4 | }; | 
|---|
|  | 5 |  | 
|---|
|  | 6 | forall( otype z | has_q( z ) ) void f() { | 
|---|
|  | 7 | context has_r( otype T, otype U ) { | 
|---|
|  | 8 | T r( T, T (T,U) ); | 
|---|
|  | 9 | }; | 
|---|
|  | 10 |  | 
|---|
|  | 11 | extern otype x, y | has_r( x, y ); | 
|---|
|  | 12 | } | 
|---|
|  | 13 |  | 
|---|
|  | 14 | //Dummy main | 
|---|
|  | 15 | int main(int argc, char const *argv[]) | 
|---|
|  | 16 | { | 
|---|
|  | 17 | return 0; | 
|---|
|  | 18 | } | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.