Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
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"
);
}