OSDN Git Service

2009-01-11 Matthias Klose <doko@ubuntu.com>
authordoko <doko@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Jan 2009 17:38:22 +0000 (17:38 +0000)
committerdoko <doko@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Jan 2009 17:38:22 +0000 (17:38 +0000)
        PR middle-end/38616
        * gcc.dg/pr38616.c: New test.

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

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

index 9326feb..f8b0c49 100644 (file)
@@ -1,3 +1,8 @@
+2009-01-11  Matthias Klose  <doko@ubuntu.com>
+
+       PR middle-end/38616
+       * gcc.dg/pr38616.c: New test.
+
 2009-01-10  Sebastian Pop  <sebastian.pop@amd.com>
 
        * gcc.dg/graphite/block-3.c: Fix compile error on 32bit.
diff --git a/gcc/testsuite/gcc.dg/pr38616.c b/gcc/testsuite/gcc.dg/pr38616.c
new file mode 100644 (file)
index 0000000..98669da
--- /dev/null
@@ -0,0 +1,13 @@
+/* PR middle-end/38616 */
+/* { dg-do run } */
+/* { dg-options "-O2 -fstack-protector" } */
+
+#include <stdio.h> 
+
+#define BUFFER "1234567890abcdefghijklmno"
+int main (void)
+{
+  char buffer[1024]="";
+  sprintf (buffer, "%s", BUFFER);
+  return strcmp (buffer, BUFFER);
+}