Changeset 0853178


Ignore:
Timestamp:
Aug 8, 2016, 4:29:24 PM (5 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
04273e9
Parents:
a465caf
Message:

update extension test to account for union field ctor

Location:
src/tests/.expect
Files:
2 edited

Legend:

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

    ra465caf r0853178  
    7070static inline void ___destructor__F_P2uU_autogen___1(union U *___dst__P2uU_1){
    7171}
     72static inline void ___constructor__F_P2uUi_autogen___1(union U *___dst__P2uU_1, int __src__i_1){
     73    void *_tmp_cp_ret2;
     74    ((void)((_tmp_cp_ret2=__builtin_memcpy(((void *)___dst__P2uU_1), ((const void *)(&__src__i_1)), sizeof(int ))) , _tmp_cp_ret2));
     75    ((void)(_tmp_cp_ret2) /* ^?{} */);
     76}
    7277__extension__ enum E {
    7378    __R__C2eE_1,
     
    8994    __extension__ int __c__i_2;
    9095    ((void)(__extension__ __a__i_2=(__extension__ __b__i_2+__extension__ __c__i_2)));
    91     int _tmp_cp_ret2;
    92     ((void)((_tmp_cp_ret2=__extension__ __fred__Fi_i__1(3)) , _tmp_cp_ret2));
    93     ((void)(_tmp_cp_ret2) /* ^?{} */);
     96    int _tmp_cp_ret3;
     97    ((void)((_tmp_cp_ret3=__extension__ __fred__Fi_i__1(3)) , _tmp_cp_ret3));
     98    ((void)(_tmp_cp_ret3) /* ^?{} */);
    9499    ((void)__extension__ sizeof(3));
    95100    ((void)__extension__ (((int )(3!=0)) || ((int )(4!=0))));
     
    100105    ((void)((__extension__ __a__i_2 , __extension__ __b__i_2) , __extension__ __c__i_2));
    101106}
    102 __attribute__ ((constructor(),)) static void _init_extension(void){
    103     int _global_init0;
    104     ((void)((*((int *)(&__a__i_1)))=_global_init0) /* ?{} */);
    105     int _global_init1;
    106     ((void)((*((int *)(&__b__i_1)))=_global_init1) /* ?{} */);
    107     int _global_init2;
    108     ((void)((*((int *)(&__c__i_1)))=_global_init2) /* ?{} */);
    109 }
    110 __attribute__ ((destructor(),)) static void _destroy_extension(void){
    111     ((void)((*((int *)(&__c__i_1)))) /* ^?{} */);
    112     ((void)((*((int *)(&__b__i_1)))) /* ^?{} */);
    113     ((void)((*((int *)(&__a__i_1)))) /* ^?{} */);
    114 }
  • src/tests/.expect/64/extension.txt

    ra465caf r0853178  
    7070static inline void ___destructor__F_P2uU_autogen___1(union U *___dst__P2uU_1){
    7171}
     72static inline void ___constructor__F_P2uUi_autogen___1(union U *___dst__P2uU_1, int __src__i_1){
     73    void *_tmp_cp_ret2;
     74    ((void)((_tmp_cp_ret2=__builtin_memcpy(((void *)___dst__P2uU_1), ((const void *)(&__src__i_1)), sizeof(int ))) , _tmp_cp_ret2));
     75    ((void)(_tmp_cp_ret2) /* ^?{} */);
     76}
    7277__extension__ enum E {
    7378    __R__C2eE_1,
     
    8994    __extension__ int __c__i_2;
    9095    ((void)(__extension__ __a__i_2=(__extension__ __b__i_2+__extension__ __c__i_2)));
    91     int _tmp_cp_ret2;
    92     ((void)((_tmp_cp_ret2=__extension__ __fred__Fi_i__1(3)) , _tmp_cp_ret2));
    93     ((void)(_tmp_cp_ret2) /* ^?{} */);
     96    int _tmp_cp_ret3;
     97    ((void)((_tmp_cp_ret3=__extension__ __fred__Fi_i__1(3)) , _tmp_cp_ret3));
     98    ((void)(_tmp_cp_ret3) /* ^?{} */);
    9499    ((void)__extension__ sizeof(3));
    95100    ((void)__extension__ (((int )(3!=0)) || ((int )(4!=0))));
Note: See TracChangeset for help on using the changeset viewer.