ADT
ast-experimental
pthread-emulation
|
Last change
on this file since 4dba1da was c21f5a9, checked in by Andrew Beach <ajbeach@…>, 4 years ago |
|
Andrew MMath: Work on figures and linkonce.
|
-
Property mode
set to
100644
|
|
File size:
402 bytes
|
| Rev | Line | |
|---|
| [aff7e86] | 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 |
|
|---|
| [c21f5a9] | 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 |
|
|---|
| [aff7e86] | 11 | int main(int argc, char * argv[]) {
|
|---|
| [c21f5a9] | 12 | printformat(example, example);
|
|---|
| [aff7e86] | 13 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.