source: src/tests/Context.c@ e5b96bf

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 e5b96bf was e5b96bf, checked in by Thierry Delisle <tdelisle@…>, 9 years ago

fixed a several errors in tests

  • Property mode set to 100644
File size: 281 bytes
Line 
1//cforall context declaration
2trait has_q( otype T ) {
3 T q( T );
4};
5
6forall( 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
15int main(int argc, char const *argv[])
16{
17 return 0;
18}
Note: See TracBrowser for help on using the repository browser.