URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vector-subscript-1.c] - Rev 713
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-w" } */ #define vector __attribute__((vector_size(16) )) /* Check that vector[index] works and index[vector] is rejected. */ float vf(vector float a) { return 0[a]; /* { dg-error "subscripted value is neither array nor pointer nor vector" } */ } float fv(vector float a) { return a[0]; }
Go to most recent revision | Compare with Previous | Blame | View Log