Commit f67f7737 by Alexandre Oliva Committed by Alexandre Oliva

string-opt-9.c: strcmp returns int.

* gcc.c-torture/execute/string-opt-9.c: strcmp returns int.
* gcc.c-torture/execute/string-opt-10.c: Likewise.

From-SVN: r69916
parent 5f0eabcc
2003-07-29 Alexandre Oliva <aoliva@redhat.com>
* gcc.c-torture/execute/string-opt-9.c: strcmp returns int.
* gcc.c-torture/execute/string-opt-10.c: Likewise.
2003-07-28 Jan Hubicka <jh@suse.cz> 2003-07-28 Jan Hubicka <jh@suse.cz>
PR c++/11530 PR c++/11530
......
/* Copyright (C) 2000 Free Software Foundation. /* Copyright (C) 2000, 2003 Free Software Foundation.
Ensure all expected transformations of builtin strncat occur and Ensure all expected transformations of builtin strncat occur and
perform correctly. perform correctly.
...@@ -9,7 +9,7 @@ extern void abort (void); ...@@ -9,7 +9,7 @@ extern void abort (void);
typedef __SIZE_TYPE__ size_t; typedef __SIZE_TYPE__ size_t;
extern char *strncat (char *, const char *, size_t); extern char *strncat (char *, const char *, size_t);
extern char *strcpy (char *, const char *); extern char *strcpy (char *, const char *);
extern char *strcmp (const char *, const char *); extern int strcmp (const char *, const char *);
int x = 123; int x = 123;
int main () int main ()
......
/* Copyright (C) 2000 Free Software Foundation. /* Copyright (C) 2000, 2003 Free Software Foundation.
Ensure all expected transformations of builtin strcat occur and Ensure all expected transformations of builtin strcat occur and
perform correctly. perform correctly.
...@@ -9,7 +9,7 @@ extern void abort (void); ...@@ -9,7 +9,7 @@ extern void abort (void);
typedef __SIZE_TYPE__ size_t; typedef __SIZE_TYPE__ size_t;
extern char *strcat (char *, const char *); extern char *strcat (char *, const char *);
extern char *strcpy (char *, const char *); extern char *strcpy (char *, const char *);
extern char *strcmp (const char *, const char *); extern int strcmp (const char *, const char *);
int main () int main ()
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment