aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr27639.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/pr27639.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/pr27639.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/pr27639.c b/gcc-4.9/gcc/testsuite/gcc.dg/pr27639.c
new file mode 100644
index 000000000..cb7b1429d
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/pr27639.c
@@ -0,0 +1,14 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -std=c99" } */
+#if(__SIZEOF_INT__ >= 4)
+char heap[50000];
+#else
+char heap[32000];
+#endif
+int
+main ()
+{
+ for (unsigned ix = sizeof (heap); ix--;)
+ heap[ix] = ix;
+ return 0;
+}