Imported Upstream version 4.7.3
[platform/upstream/gcc48.git] / gcc / testsuite / gcc.dg / vect / pr49318.c
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
3 /* { dg-require-effective-target vect_float } */
4
5 typedef enum { GL_FALSE } GLenum;
6 typedef unsigned char GLboolean;
7 typedef int GLint;
8 typedef unsigned int GLuint;
9 typedef float GLfloat;
10 typedef double GLdouble;
11 typedef struct gl_context GLcontext;
12 struct gl_context {
13   GLfloat TextureMatrix[16];
14   GLenum Primitive;
15 };
16 void gl_GetDoublev( GLcontext *ctx, GLenum pname, GLdouble *params ) {
17   GLuint i;
18   for (i=0; i<16; i++)
19     params[i] = (GLint) ctx->TextureMatrix[i];
20 }
21
22 /* { dg-final { cleanup-tree-dump "vect" } } */