]> gcc.gnu.org Git - gcc.git/commitdiff
re PR tree-optimization/26865 (Segmentation fault with -std=c99 -O1 and alloca())
authorJakub Jelinek <jakub@redhat.com>
Tue, 25 Apr 2006 09:42:41 +0000 (11:42 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 25 Apr 2006 09:42:41 +0000 (11:42 +0200)
PR tree-optimization/26865
* gcc.dg/pr26865.c: New test.

From-SVN: r113242

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

index abad315a6c2119d8866d499221277b3af0cdf8dc..3392b96288de91478b6e0e4e31311b8e59eb2dbe 100644 (file)
@@ -1,3 +1,8 @@
+2006-04-25  Jakub Jelinek  <jakub@redhat.com>
+
+       PR tree-optimization/26865
+       * gcc.dg/pr26865.c: New test.
+
 2006-04-24  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/27292
diff --git a/gcc/testsuite/gcc.dg/pr26865.c b/gcc/testsuite/gcc.dg/pr26865.c
new file mode 100644 (file)
index 0000000..d9f1fe0
--- /dev/null
@@ -0,0 +1,8 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -std=c99" } */
+
+void
+foo (void)
+{
+  char *e = alloca (100); /* { dg-warning "implicit declaration|initialization makes" } */
+}
This page took 0.121454 seconds and 5 git commands to generate.