about summary refs log tree commit diff
path: root/elf/reldep8mod1.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-12-30 20:25:40 +0000
committerUlrich Drepper <drepper@redhat.com>2002-12-30 20:25:40 +0000
commitcfaf5e56c8051df686d22d1e5f414dc5e7fdfbe5 (patch)
tree5a504468a5a648fbbf07e04c13b0248c269e2c03 /elf/reldep8mod1.c
parent31df0ab098442ccd9fdc7571b624d26137361089 (diff)
downloadglibc-cfaf5e56c8051df686d22d1e5f414dc5e7fdfbe5.tar.gz
glibc-cfaf5e56c8051df686d22d1e5f414dc5e7fdfbe5.tar.xz
glibc-cfaf5e56c8051df686d22d1e5f414dc5e7fdfbe5.zip
Update.
2002-12-30  Ulrich Drepper  <drepper@redhat.com>

	* elf/Makefile: Add rules to build and run reldep8 test.
	* elf/reldep8.c: New file.
	* elf/reldep8mod1.c: New file.
	* elf/reldep8mod2.c: New file.
	* elf/reldep8mod3.c: New file.
	Contributed by Jakub Jelinek.
Diffstat (limited to 'elf/reldep8mod1.c')
-rw-r--r--elf/reldep8mod1.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/elf/reldep8mod1.c b/elf/reldep8mod1.c
new file mode 100644
index 0000000000..acddc4cf8b
--- /dev/null
+++ b/elf/reldep8mod1.c
@@ -0,0 +1,19 @@
+#include <stdlib.h>
+void
+foo (void)
+{
+  exit (0);
+}
+
+void
+__attribute__((destructor))
+bar (void)
+{
+  static int i;
+  foo ();
+  ++i;
+}
+void
+baz (void)
+{
+}