source: tests/link-once/main.cfa @ aff7e86

arm-ehenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-expr
Last change on this file since aff7e86 was aff7e86, checked in by Andrew Beach <ajbeach@…>, 15 months ago

Added a new attribute 'cfa_linkonce'.

  • Property mode set to 100644
File size: 294 bytes
Line 
1// Test our new cfa_linkonce attribute:
2
3__attribute__(( cfa_linkonce )) signed int example = -7;
4__attribute__(( cfa_linkonce )) unsigned int example = 12;
5
6int main(int argc, char * argv[]) {
7        signed int si = example;
8        unsigned int ui = example;
9        printf("signed=%d unsigned=%d\n", si, ui);
10}
Note: See TracBrowser for help on using the repository browser.