aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/cilk-plus/AN/pr61962.c
blob: 08d4fe236286b0dff3d5e7f2af23d3ece9d1bee0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR other/61962 */
/* { dg-do compile } */
/* { dg-options "-fcilkplus" } */

struct FloatStruct
{
    float *f;
};

/* Either SRC or DST must be a struct, otherwise the bug does not occur.  */
void f (struct FloatStruct* dst, float *src, unsigned int length)
{
    dst->f[0:length] = src[0:length];
}