OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [Wstrict-aliasing-bogus-vla-1.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* PR 41673: bogus -Wstrict-aliasing warning from VLA dereference.  */
2
/* { dg-do compile } */
3
/* { dg-options "-std=gnu99 -O2 -Wall" } */
4
 
5
int main(int argc, char *argv[])
6
{
7
    float x[argc];
8
    float y[argc];
9
    return 0 == __builtin_memcpy(y, x, argc * sizeof(*x));
10
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.