From 3d786f1969b1000f8dd7aa96e712f0b9134b3349 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 19 Mar 2005 08:04:37 +0000 Subject: * elf/Makefile: Add rules to build and run order2. * elf/order2.c: New file. * elf/order2mod1.c: New file. * elf/order2mod2.c: New file. * elf/order2mod3.c: New file. * elf/order2mod4.c: New file. --- elf/order2mod4.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 elf/order2mod4.c (limited to 'elf/order2mod4.c') diff --git a/elf/order2mod4.c b/elf/order2mod4.c new file mode 100644 index 0000000000..4f2026f041 --- /dev/null +++ b/elf/order2mod4.c @@ -0,0 +1,16 @@ +#include + +extern int bar (void); + +int +foo (void) +{ + return 42 + bar (); +} + +static void +__attribute__ ((destructor)) +fini (void) +{ + putchar ('3'); +} -- cgit v1.2.1