ADT
arm-eh
ast-experimental
enum
forall-pointer-decay
jacob/cs343-translation
new-ast-unique-expr
pthread-emulation
qualifiedEnum
|
Last change
on this file since 02a43ff was aff7e86, checked in by Andrew Beach <ajbeach@…>, 5 years 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 |
|
|---|
| 6 | 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);
|
|---|
| 10 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.