OSDN Git Service

PR middle-end/27095
authoramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Apr 2006 03:36:15 +0000 (03:36 +0000)
committeramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Apr 2006 03:36:15 +0000 (03:36 +0000)
* gcc.dg/pr27095.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113340 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr27095.c [new file with mode: 0644]

index c8fc07c..b4ebae7 100644 (file)
@@ -1,3 +1,8 @@
+2006-04-28  Alan Modra  <amodra@bigpond.net.au>
+
+       PR middle-end/27095
+       * gcc.dg/pr27095.c: New.
+
 2006-04-27  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/27292
diff --git a/gcc/testsuite/gcc.dg/pr27095.c b/gcc/testsuite/gcc.dg/pr27095.c
new file mode 100644 (file)
index 0000000..7c42ac2
--- /dev/null
@@ -0,0 +1,14 @@
+/* { dg-do compile } */
+/* { dg-options "-O2" } */
+
+extern void *memset (void *, int, __SIZE_TYPE__);
+extern __SIZE_TYPE__ strlen (const char *);
+
+int
+main (int argc, char **argv)
+{
+  char x[8] = "abc";
+  memset (x, argc, strlen (x));
+  return 0;
+}
+/* { dg-final { scan-assembler-not "(?n)strlen\(.*\n\)+.*strlen" } } */