view gcc/testsuite/gcc.dg/torture/pr69157.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-do compile } */

typedef struct {
    float *data_normal3f;
    float *data_texcoordtexture2f;
    float *data_texcoordlightmap2f;
    float *data_color4f;
} dp_model_t;
dp_model_t a;
float *b;
void fn1() {
    int c;
    a.data_normal3f = b + c * 3;
    a.data_texcoordtexture2f = a.data_normal3f + c * 3;
    a.data_texcoordlightmap2f = a.data_color4f =
	a.data_texcoordlightmap2f + c * 2;
}