Changeset c21f5a9 for tests/link-once
- Timestamp:
- May 20, 2021, 10:53:21 AM (3 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 090a7c5
- Parents:
- 77f1265
- Location:
- tests/link-once
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/link-once/main.cfa
r77f1265 rc21f5a9 4 4 __attribute__(( cfa_linkonce )) unsigned int example = 12; 5 5 6 __attribute__(( cfa_linkonce )) 7 void printformat(signed int signed_value, unsigned int unsigned_value) { 8 printf("signed=%d unsigned=%d\n", signed_value, unsigned_value); 9 } 10 6 11 int main(int argc, char * argv[]) { 7 signed int si = example; 8 unsigned int ui = example; 9 printf("signed=%d unsigned=%d\n", si, ui); 12 printformat(example, example); 10 13 } -
tests/link-once/partner.cfa
r77f1265 rc21f5a9 3 3 __attribute__(( cfa_linkonce )) signed int example = -7; 4 4 __attribute__(( cfa_linkonce )) unsigned int example = 12; 5 6 __attribute__(( cfa_linkonce )) 7 void printformat(signed int signed_value, unsigned int unsigned_value) { 8 printf("signed=%d unsigned=%d\n", signed_value, unsigned_value); 9 }
Note: See TracChangeset
for help on using the changeset viewer.