Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/usr.bin/ld Fix thinko in previous.



details:   https://anonhg.NetBSD.org/src/rev/2af55ef7e722
branches:  trunk
changeset: 333704:2af55ef7e722
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Fri Nov 14 16:20:42 2014 +0000

description:
Fix thinko in previous.

diffstat:

 tests/usr.bin/ld/t_section.sh |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r 56eedb90a7bd -r 2af55ef7e722 tests/usr.bin/ld/t_section.sh
--- a/tests/usr.bin/ld/t_section.sh     Fri Nov 14 15:59:46 2014 +0000
+++ b/tests/usr.bin/ld/t_section.sh     Fri Nov 14 16:20:42 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_section.sh,v 1.1 2014/11/14 13:30:48 uebayasi Exp $
+#      $NetBSD: t_section.sh,v 1.2 2014/11/14 16:20:42 uebayasi Exp $
 #
 # Copyright (c) 2014 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -36,13 +36,12 @@
 #include <sys/cdefs.h>
 int i __section("hoge");
 extern int __start_hoge[], __stop_hoge[];
-int main = __start_hoge[0] + __stop_hoge[0];
+int main(void) { return __start_hoge[0] + __stop_hoge[0]; }
 EOF
        atf_check -s exit:0 -o ignore -e ignore cc -o test test.c
 }
 
 atf_init_test_cases()
 {
-
        atf_add_test_case startstop
 }



Home | Main Index | Thread Index | Old Index