Back to index

glibc  2.9
order2mod2.c
Go to the documentation of this file.
00001 #include <stdio.h>
00002 
00003 extern int foo (void);
00004 extern int bar (void);
00005 
00006 void
00007 __attribute__ ((constructor))
00008 init (void)
00009 {
00010   (void) (foo () - bar ());
00011 }
00012 
00013 static void
00014 __attribute__ ((destructor))
00015 fini (void)
00016 {
00017   putchar ('2');
00018 }