Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wchar-subscripts-2.C
blob: 2170cb20616edfa7f109c2db610bea6a6257e091 [
file
] [
log
] [
blame
]
/* PR c++/16307 */
// { dg-do compile }
// { dg-options "-Wchar-subscripts" }
extern
volatile
char
bla
;
char
foo
(
const
char
*
s
)
{
return
s
[
bla
];
// { dg-warning "array subscript" }
}
int
main
()
{
foo
(
"\x80"
);
}