aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr82875.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr82875.c')
-rw-r--r--gcc/testsuite/gcc.dg/pr82875.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr82875.c b/gcc/testsuite/gcc.dg/pr82875.c
new file mode 100644
index 0000000..5b97b80
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr82875.c
@@ -0,0 +1,11 @@
+/* PR middle-end/82875 */
+/* { dg-do compile } */
+/* { dg-options "-ftree-ter" } */
+
+const int a = 100;
+
+void
+foo (void)
+{
+ int c[a];
+}