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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Warray-bounds-3.C] - Blame information for rev 516

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -Wall" } */
3
 
4
extern void function(void * x);
5
 
6
struct A {
7
    long x;
8
    char d[0];
9
};
10
 
11
 
12
void test(A * a) {
13
    function((char *)a - 4); /* { dg-bogus "below array bounds" } */
14
}
15
 

powered by: WebSVN 2.1.0

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