aboutsummaryrefslogtreecommitdiff
path: root/SingleSource/Regression/C/gcc-c-torture/execute/pr56837.c
diff options
context:
space:
mode:
Diffstat (limited to 'SingleSource/Regression/C/gcc-c-torture/execute/pr56837.c')
-rw-r--r--SingleSource/Regression/C/gcc-c-torture/execute/pr56837.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/SingleSource/Regression/C/gcc-c-torture/execute/pr56837.c b/SingleSource/Regression/C/gcc-c-torture/execute/pr56837.c
new file mode 100644
index 00000000..a6ce2af7
--- /dev/null
+++ b/SingleSource/Regression/C/gcc-c-torture/execute/pr56837.c
@@ -0,0 +1,21 @@
+extern void abort (void);
+_Complex int a[1024];
+
+__attribute__((noinline, noclone)) void
+foo (void)
+{
+ int i;
+ for (i = 0; i < 1024; i++)
+ a[i] = -1;
+}
+
+int
+main ()
+{
+ int i;
+ foo ();
+ for (i = 0; i < 1024; i++)
+ if (a[i] != -1)
+ abort ();
+ return 0;
+}