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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wchar-subscripts-2.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
/* PR c++/16307 */
2
// { dg-do compile }
3
// { dg-options "-Wchar-subscripts" }
4
 
5
extern volatile char bla;
6
 
7
char foo (const char *s)
8
{
9
    return s [bla];          // { dg-warning "array subscript" }
10
}
11
 
12
int main ()
13
{
14
    foo ("\x80");
15
}

powered by: WebSVN 2.1.0

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