repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
strub: enable conditional support
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr49644.C
blob
5fb82e0177e5624a21078b64134eedef243b069e
1
// PR c/49644
2
// { dg-do run }
3
4
extern "C" void abort ();
5
6
int
7
main ()
8
{
9
_Complex double a[12], *c = a, s = 3.0 + 1.0i;
10
double b[12] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }, *d = b;
11
int i;
12
for (i = 0; i < 6; i++)
13
*c++ = *d++ * s;
14
if (c != a + 6 || d != b + 6)
15
abort ();
16
return 0;
17
}