diff options
Diffstat (limited to 'ld/testsuite/ld-elf/data2.c')
-rw-r--r-- | ld/testsuite/ld-elf/data2.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/data2.c b/ld/testsuite/ld-elf/data2.c new file mode 100644 index 00000000000..c137b7ce5dc --- /dev/null +++ b/ld/testsuite/ld-elf/data2.c @@ -0,0 +1,9 @@ +int foo = 0; +extern int foo_alias __attribute__ ((weak, alias ("foo"))); + +void +bar (void) +{ + foo = -1; +} + |