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

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

Andrew MMath: Work on figures and linkonce.

  • Property mode set to 100644
File size: 402 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
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
11int main(int argc, char * argv[]) {
12        printformat(example, example);
13}
Note: See TracBrowser for help on using the repository browser.