Ignore:
Timestamp:
May 20, 2021, 10:53:21 AM (3 years ago)
Author:
Andrew Beach <ajbeach@…>
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
Message:

Andrew MMath: Work on figures and linkonce.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/link-once/main.cfa

    r77f1265 rc21f5a9  
    44__attribute__(( cfa_linkonce )) unsigned int example = 12;
    55
     6__attribute__(( cfa_linkonce ))
     7void printformat(signed int signed_value, unsigned int unsigned_value) {
     8        printf("signed=%d unsigned=%d\n", signed_value, unsigned_value);
     9}
     10
    611int 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);
    1013}
Note: See TracChangeset for help on using the changeset viewer.