From b3cded65e92ba4d9b5e5a33fb95c4d551bda9c1b Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 30 Oct 2010 23:02:32 +0000 Subject: Import the binutils master branch from the sourceware CVS repository, exactly as it was on Tue, 3 Jul 2007 07:54:19 +0000. Corresponds to git commit 397a64b350470350c8e0adb2af84439ea0f89272, which was the last commit before switching to GPLv3. --- ld/testsuite/ld-elf/beginwarn.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 ld/testsuite/ld-elf/beginwarn.c (limited to 'ld/testsuite/ld-elf/beginwarn.c') diff --git a/ld/testsuite/ld-elf/beginwarn.c b/ld/testsuite/ld-elf/beginwarn.c new file mode 100644 index 0000000000000..ebe28191b56f3 --- /dev/null +++ b/ld/testsuite/ld-elf/beginwarn.c @@ -0,0 +1,9 @@ +static const char _evoke_link_warning_foo [] + __attribute__ ((used, section (".gnu.warning.foo"))) + = "function foo is deprecated"; + +extern void foo (void); + +static void (*const init_array []) (void) + __attribute__ ((used, section (".init_array"), aligned (sizeof (void *)))) + = { foo }; -- cgit v1.2.3