Changeset cad355a for src/tests


Ignore:
Timestamp:
Jul 11, 2016, 5:20:03 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, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
919d1ba
Parents:
0b4d93ab
Message:

generated field constructors for structs with const members no longer cause an error, other generated constructors and destructors construct and destruct const members

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/.expect/extension.txt

    r0b4d93ab rcad355a  
    1717}
    1818static inline void ___constructor__F_P2sS_autogen___1(struct S *___dst__P2sS_1){
    19     ((void)((*___dst__P2sS_1).__a__i_1) /* ?{} */);
    20     ((void)((*___dst__P2sS_1).__b__i_1) /* ?{} */);
    21     ((void)((*___dst__P2sS_1).__c__i_1) /* ?{} */);
     19    ((void)((*((int *)(&(*___dst__P2sS_1).__a__i_1)))) /* ?{} */);
     20    ((void)((*((int *)(&(*___dst__P2sS_1).__b__i_1)))) /* ?{} */);
     21    ((void)((*((int *)(&(*___dst__P2sS_1).__c__i_1)))) /* ?{} */);
    2222}
    2323static inline void ___constructor__F_P2sS2sS_autogen___1(struct S *___dst__P2sS_1, struct S ___src__2sS_1){
    24     ((void)((*___dst__P2sS_1).__a__i_1=___src__2sS_1.__a__i_1) /* ?{} */);
    25     ((void)((*___dst__P2sS_1).__b__i_1=___src__2sS_1.__b__i_1) /* ?{} */);
    26     ((void)((*___dst__P2sS_1).__c__i_1=___src__2sS_1.__c__i_1) /* ?{} */);
     24    ((void)((*((int *)(&(*___dst__P2sS_1).__a__i_1)))=___src__2sS_1.__a__i_1) /* ?{} */);
     25    ((void)((*((int *)(&(*___dst__P2sS_1).__b__i_1)))=___src__2sS_1.__b__i_1) /* ?{} */);
     26    ((void)((*((int *)(&(*___dst__P2sS_1).__c__i_1)))=___src__2sS_1.__c__i_1) /* ?{} */);
    2727}
    2828static inline void ___destructor__F_P2sS_autogen___1(struct S *___dst__P2sS_1){
    29     ((void)((*___dst__P2sS_1).__c__i_1) /* ^?{} */);
    30     ((void)((*___dst__P2sS_1).__b__i_1) /* ^?{} */);
    31     ((void)((*___dst__P2sS_1).__a__i_1) /* ^?{} */);
     29    ((void)((*((int *)(&(*___dst__P2sS_1).__c__i_1)))) /* ^?{} */);
     30    ((void)((*((int *)(&(*___dst__P2sS_1).__b__i_1)))) /* ^?{} */);
     31    ((void)((*((int *)(&(*___dst__P2sS_1).__a__i_1)))) /* ^?{} */);
    3232}
    3333static inline void ___constructor__F_P2sSi_autogen___1(struct S *___dst__P2sS_1, int __a__i_1){
    34     ((void)((*___dst__P2sS_1).__a__i_1=__a__i_1) /* ?{} */);
    35     ((void)((*___dst__P2sS_1).__b__i_1) /* ?{} */);
    36     ((void)((*___dst__P2sS_1).__c__i_1) /* ?{} */);
     34    ((void)((*((int *)(&(*___dst__P2sS_1).__a__i_1)))=__a__i_1) /* ?{} */);
     35    ((void)((*((int *)(&(*___dst__P2sS_1).__b__i_1)))) /* ?{} */);
     36    ((void)((*((int *)(&(*___dst__P2sS_1).__c__i_1)))) /* ?{} */);
    3737}
    3838static inline void ___constructor__F_P2sSii_autogen___1(struct S *___dst__P2sS_1, int __a__i_1, int __b__i_1){
    39     ((void)((*___dst__P2sS_1).__a__i_1=__a__i_1) /* ?{} */);
    40     ((void)((*___dst__P2sS_1).__b__i_1=__b__i_1) /* ?{} */);
    41     ((void)((*___dst__P2sS_1).__c__i_1) /* ?{} */);
     39    ((void)((*((int *)(&(*___dst__P2sS_1).__a__i_1)))=__a__i_1) /* ?{} */);
     40    ((void)((*((int *)(&(*___dst__P2sS_1).__b__i_1)))=__b__i_1) /* ?{} */);
     41    ((void)((*((int *)(&(*___dst__P2sS_1).__c__i_1)))) /* ?{} */);
    4242}
    4343static inline void ___constructor__F_P2sSiii_autogen___1(struct S *___dst__P2sS_1, int __a__i_1, int __b__i_1, int __c__i_1){
    44     ((void)((*___dst__P2sS_1).__a__i_1=__a__i_1) /* ?{} */);
    45     ((void)((*___dst__P2sS_1).__b__i_1=__b__i_1) /* ?{} */);
    46     ((void)((*___dst__P2sS_1).__c__i_1=__c__i_1) /* ?{} */);
     44    ((void)((*((int *)(&(*___dst__P2sS_1).__a__i_1)))=__a__i_1) /* ?{} */);
     45    ((void)((*((int *)(&(*___dst__P2sS_1).__b__i_1)))=__b__i_1) /* ?{} */);
     46    ((void)((*((int *)(&(*___dst__P2sS_1).__c__i_1)))=__c__i_1) /* ?{} */);
    4747}
    4848__extension__ union U {
Note: See TracChangeset for help on using the changeset viewer.