]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Fri, 21 Feb 2003 08:18:06 +0000 (08:18 +0000)
committerNo Author <no-author@gcc.gnu.org>
Fri, 21 Feb 2003 08:18:06 +0000 (08:18 +0000)
'gcc-3_2-branch'.

From-SVN: r63210

gcc/fixinc/tests/base/sys/socket.h [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/execute/20030221-1.c [new file with mode: 0644]

diff --git a/gcc/fixinc/tests/base/sys/socket.h b/gcc/fixinc/tests/base/sys/socket.h
new file mode 100644 (file)
index 0000000..56099a9
--- /dev/null
@@ -0,0 +1,19 @@
+/*  DO NOT EDIT THIS FILE.
+
+    It has been auto-edited by fixincludes from:
+
+       "fixinc/tests/inc/sys/socket.h"
+
+    This had to be done to correct non-standard usages in the
+    original, manufacturer supplied header file.  */
+
+
+
+#if defined( IRIX_SOCKLEN_T_CHECK )
+#define _SOCKLEN_T
+#if _NO_XOPEN4 && _NO_XOPEN5
+typedef int socklen_t;
+#else
+typedef u_int32_t socklen_t;
+#endif /* _NO_XOPEN4 && _NO_XOPEN5 */
+#endif  /* IRIX_SOCKLEN_T_CHECK */
diff --git a/gcc/testsuite/gcc.c-torture/execute/20030221-1.c b/gcc/testsuite/gcc.c-torture/execute/20030221-1.c
new file mode 100644 (file)
index 0000000..9dcee3e
--- /dev/null
@@ -0,0 +1,17 @@
+/* PR optimization/8613 */
+/* Contributed by Glen Nakamura */
+
+extern void abort (void);
+int main (void)
+{
+  char buf[16] = "1234567890";
+  char *p = buf;
+
+  *p++ = (char) __builtin_strlen (buf);
+
+  if ((buf[0] != 10) || (p - buf != 1))
+    abort ();
+
+  return 0;
+}