Changeset 33a7b6d for src/tests


Ignore:
Timestamp:
Nov 15, 2016, 5:30:52 PM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
d9fa60a
Parents:
8f9cc50
Message:

changed use of formal types to actual types for boxing return parameters and passing type variables, fix bug where generic struct's members would change types when a member is accessed on a concrete instantiation

Location:
src/tests
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • src/tests/tupleAssign.c

    r8f9cc50 r33a7b6d  
     1//
     2// Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
     3//
     4// The contents of this file are covered under the licence agreement in the
     5// file "LICENCE" distributed with Cforall.
     6//
     7// tupleAssign.c --
     8//
     9// Author           : Rob Schluntz
     10// Created On       : Tue Nov 15 17:24:32 2016
     11// Last Modified By : Rob Schluntz
     12// Last Modified On : Tue Nov 15 17:27:28 2016
     13// Update Count     : 3
     14//
     15
    116int main() {
    217        {
     
    3954        }
    4055}
     56
     57// Local Variables: //
     58// tab-width: 4 //
     59// End: //
  • src/tests/tupleFunction.c

    r8f9cc50 r33a7b6d  
     1//
     2// Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
     3//
     4// The contents of this file are covered under the licence agreement in the
     5// file "LICENCE" distributed with Cforall.
     6//
     7// tupleFunction.c --
     8//
     9// Author           : Rob Schluntz
     10// Created On       : Tue Nov 15 17:24:32 2016
     11// Last Modified By : Rob Schluntz
     12// Last Modified On : Tue Nov 15 17:27:28 2016
     13// Update Count     : 3
     14//
     15
    116struct S {
    217        int f1, f2;
     
    7792        printf("x1=%d x2=%lg x3=%d\n", x1, x2, x3);
    7893}
     94
     95// Local Variables: //
     96// tab-width: 4 //
     97// End: //
     98
  • src/tests/tupleMember.c

    r8f9cc50 r33a7b6d  
     1//
     2// Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
     3//
     4// The contents of this file are covered under the licence agreement in the
     5// file "LICENCE" distributed with Cforall.
     6//
     7// tupleFunction.c --
     8//
     9// Author           : Rob Schluntz
     10// Created On       : Tue Nov 15 17:24:32 2016
     11// Last Modified By : Rob Schluntz
     12// Last Modified On : Tue Nov 15 17:27:28 2016
     13// Update Count     : 3
     14//
     15
    116void f() {
    217        printf("called f!\n");
     
    4156        printf("v.[f1, i.[f2, f3], f4]=[%d, [%d, %d], %lg]\n", h().[f1, i.[f2, f3], f4]);
    4257}
     58
     59// Local Variables: //
     60// tab-width: 4 //
     61// End: //
Note: See TracChangeset for help on using the changeset viewer.