aboutsummaryrefslogtreecommitdiff
path: root/SingleSource/Regression/C/gcc-c-torture/execute/pr49644.c
diff options
context:
space:
mode:
Diffstat (limited to 'SingleSource/Regression/C/gcc-c-torture/execute/pr49644.c')
-rw-r--r--SingleSource/Regression/C/gcc-c-torture/execute/pr49644.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/SingleSource/Regression/C/gcc-c-torture/execute/pr49644.c b/SingleSource/Regression/C/gcc-c-torture/execute/pr49644.c
new file mode 100644
index 00000000..88be23c4
--- /dev/null
+++ b/SingleSource/Regression/C/gcc-c-torture/execute/pr49644.c
@@ -0,0 +1,16 @@
+/* PR c/49644 */
+
+extern void abort (void);
+
+int
+main ()
+{
+ _Complex double a[12], *c = a, s = 3.0 + 1.0i;
+ double b[12] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }, *d = b;
+ int i;
+ for (i = 0; i < 6; i++)
+ *c++ = *d++ * s;
+ if (c != a + 6 || d != b + 6)
+ abort ();
+ return 0;
+}