OSDN Git Service

Testcase for PR 169.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Feb 2004 07:34:30 +0000 (07:34 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Feb 2004 07:34:30 +0000 (07:34 +0000)
* gcc.c-torture/execute/20040223-1.c: New.

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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20040223-1.c [new file with mode: 0644]

index f608919..160926a 100644 (file)
@@ -1,3 +1,7 @@
+2004-02-23  James E Wilson  <wilson@specifixinc.com>
+
+       * gcc.c-torture/execute/20040223-1.c: New.
+
 2004-02-23  Zack Weinberg  <zack@codesourcery.com>
            Kazu Hirata  <kazu@cs.umass.edu>
 
diff --git a/gcc/testsuite/gcc.c-torture/execute/20040223-1.c b/gcc/testsuite/gcc.c-torture/execute/20040223-1.c
new file mode 100644 (file)
index 0000000..940ec0d
--- /dev/null
@@ -0,0 +1,16 @@
+#include <string.h>
+#include <stdio.h>
+
+void
+a(void *x,int y)
+{
+  if (y != 1234)
+    abort ();
+}
+
+int
+main()
+{
+  a(strcpy(alloca(100),"abc"),1234);
+  return 0;
+}