OSDN Git Service

2004-06-15 Michael Chastain <mec.gnu@mindspring.com>
authorchastain <chastain>
Wed, 16 Jun 2004 04:27:29 +0000 (04:27 +0000)
committerchastain <chastain>
Wed, 16 Jun 2004 04:27:29 +0000 (04:27 +0000)
* gdb.base/long_long.c: Add copyright notice.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/long_long.c

index d49d618..745cb21 100644 (file)
@@ -1,5 +1,9 @@
 2004-06-15  Michael Chastain  <mec.gnu@mindspring.com>
 
+       * gdb.base/long_long.c: Add copyright notice.
+
+2004-06-15  Michael Chastain  <mec.gnu@mindspring.com>
+
        * gdb.base/long_long.exp: Remove reference to
        bug-gdb@prep.ai.mit.edu.  Change line-number-specific breakpoint
        to gdb_breakpoint and gdb_continue_to_breakpoint.
index 096528d..1d30e4c 100644 (file)
@@ -1,3 +1,23 @@
+/* This test script is part of GDB, the GNU debugger.
+
+   Copyright 1999, 2004,
+   Free Software Foundation, Inc.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+   */
+
 /* Test long long expression; test printing in general.
  *
  * /CLO/BUILD_ENV/Exports/cc -g +e -o long_long long_long.c
@@ -7,8 +27,12 @@
  * cc +e +DA2.0 -g -o long_long long_long.c
  */
 
+#ifdef PROTOTYPES
+long long callee(long long i)
+#else
 long long callee( i )
 long long i;
+#endif
 {
    register long long result;
 
@@ -27,11 +51,13 @@ int known_types()
     */
    bin = 0x123456789abcdefLL; /* 64 bits = 16 hex digits */
    oct = 01234567123456701234567LL; /*  = 21+ octal digits */
-   dec = 12345678901234567890LL;    /*  = 19+ decimal digits */
+   dec = 12345678901234567890ULL;    /*  = 19+ decimal digits */
 
    /* Stop here and look!
     */
    hex = bin - dec | oct;
+
+   return 0;
 }
 
 int main() {