Ignore:
Timestamp:
Mar 15, 2021, 2:09:53 PM (8 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast-unique-expr
Children:
05d02c6
Parents:
5e25953
git-author:
Peter A. Buhr <pabuhr@…> (03/15/21 14:07:07)
git-committer:
Peter A. Buhr <pabuhr@…> (03/15/21 14:09:53)
Message:

add more attribute location tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/attributes.cfa

    r5e25953 rea837e94  
    1010// Created On       : Mon Feb  6 16:07:02 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Jan 25 21:26:41 2021
    13 // Update Count     : 20
     12// Last Modified On : Mon Mar 15 13:53:31 2021
     13// Update Count     : 38
    1414//
    1515
     
    4242    __attribute__(( unused )) int f5 __attribute__(( unused ));
    4343    __attribute__(( used )) int f6 __attribute__(( packed )), f7 __attribute__(( unused )) __attribute__(( unused )), __attribute__(( used )) f8 __attribute__(( unused ));
    44     int ( ( * (f9) __attribute__(( unused )) ) __attribute__(( unused )) );
     44    int * f9 __attribute__(( unused ));
     45    __attribute__(( used )) int __attribute__(( unused )) * f10;
     46    int ( ( * f11 __attribute__(( unused )) ) __attribute__(( unused )) );
     47    int ( ( __attribute__(( unused )) * f12  __attribute__(( unused )) ) __attribute__(( unused )) );
     48    int ( ( __attribute__(( unused )) * (f13)  __attribute__(( unused )) ) __attribute__(( unused )) );
     49    int ( ( ( __attribute__(( unused )) * (f14) )  __attribute__(( unused )) ) __attribute__(( unused )) );
    4550};
    4651
     
    5560const __attribute__(( used )) int __attribute__(( used )) vd5[5] __attribute__(( used )), __attribute__(( unused )) ((vd6)[5]) __attribute__(( used ));
    5661const __attribute__(( used )) int __attribute__(( used )) (* __attribute__(( used )) vd7)() __attribute__(( used )), __attribute__(( unused )) ((* __attribute__(( used )) vd8)()) __attribute__(( used ));
    57 
     62const __attribute__(( used )) int __attribute__(( used )) ( __attribute__(( used )) * vd9)() __attribute__(( used )), __attribute__(( unused )) (( __attribute__(( used )) * vd10)()) __attribute__(( used ));
    5863
    5964// function_declarator
     
    6368__attribute__(( unused )) int * __attribute__(( unused )) * const __attribute__(( unused )) f2() {}
    6469__attribute__(( unused )) int (* __attribute__(( unused )) f3(int))[] __attribute__(( used ));
    65 __attribute__(( unused )) int (* __attribute__(( unused )) f3(int p))[] {}
    66 __attribute__(( unused )) int (* __attribute__(( unused )) f4())(int) __attribute__(( used ));
    67 __attribute__(( unused )) int (* __attribute__(( unused )) f4())(int) {}
     70__attribute__(( unused )) int ( __attribute__(( unused )) * __attribute__(( unused )) f4(int))[] __attribute__(( used ));
     71__attribute__(( unused )) int (* __attribute__(( unused )) f5(int p))[] {}
     72__attribute__(( unused )) int ( __attribute__(( unused )) * (f6)(int p))[] {}
     73__attribute__(( unused )) int (* __attribute__(( unused )) f7())(int) __attribute__(( used ));
     74__attribute__(( unused )) int (* __attribute__(( unused )) f8())(int) {}
     75__attribute__(( unused )) int ( __attribute__(( unused )) * f9())(int) {}
     76__attribute__(( unused )) int ( __attribute__(( unused )) * (f10)())(int) {}
    6877
    6978
     
    7685    __attribute__(( unused )) int __attribute__(( unused )) t3[5] __attribute__(( unused ));
    7786    __attribute__(( unused )) int __attribute__(( unused )) (* (* __attribute__(( unused )) t4[5]) __attribute__(( unused )) ) __attribute__(( unused ));
    78     __attribute__(( unused )) int __attribute__(( unused )) t5() __attribute__(( unused ));
     87    __attribute__(( unused )) int __attribute__(( unused )) ( __attribute__(( unused )) * ( __attribute__(( unused )) * t5[5]) __attribute__(( unused )) ) __attribute__(( unused ));
     88    __attribute__(( unused )) int __attribute__(( unused )) t6() __attribute__(( unused ));
    7989    __attribute__(( unused )) int __attribute__(( unused )) * __attribute__(( unused )) ((t6))() __attribute__(( unused ));
    8090}
Note: See TracChangeset for help on using the changeset viewer.