Changeset 44f6341 for src/tests


Ignore:
Timestamp:
Sep 2, 2016, 1:30:36 PM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, 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:
85517ddb
Parents:
4d4882a
git-author:
Rob Schluntz <rschlunt@…> (09/01/16 17:14:32)
git-committer:
Rob Schluntz <rschlunt@…> (09/02/16 13:30:36)
Message:

fix implicit member ctor/dtor generation order, fix corresponding test

Location:
src/tests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/tests/.expect/memberCtors-ERR1.txt

    r4d4882a r44f6341  
    11CFA Version 1.0.0 (debug)
    2 Error: in void ?{}(struct B *b), member a2 used before being constructed
     2Error: in void ?{}(struct B *b), field a2 used before being constructed
    33make: *** [memberCtors-ERR1] Error 1
  • src/tests/.expect/memberCtors.txt

    r4d4882a r44f6341  
     1Before declaration of b1
    12constructing int
    23constructing int
     
    1617destructing int: 0
    1718destructing int: 1001
     19Before declaration of b2
    1820copy constructing int: 0
    1921copy constructing int: 0
     
    2527copy constructing int: 0
    2628copy constructing int: 0
     29End of main
    2730constructing int
    2831constructing int
     
    3740destructing int: 0
    3841destructing int: 0
    39 destructing int: 999
    4042destructing int: 0
    4143destructing int: 0
    4244destructing int: 0
     45destructing int: 999
    4346constructing int
    4447constructing int
     
    5356destructing int: 0
    5457destructing int: 0
    55 destructing int: 999
    5658destructing int: 0
    5759destructing int: 0
    5860destructing int: 0
     61destructing int: 999
  • src/tests/memberCtors.c

    r4d4882a r44f6341  
    5959
    6060int main() {
     61  printf("Before declaration of b1\n");
    6162  B b1;
     63  printf("Before declaration of b2\n");
    6264  B b2 = b1;
     65  printf("End of main\n");
    6366}
Note: See TracChangeset for help on using the changeset viewer.