repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wchar-subscripts-2.C
blob
2170cb20616edfa7f109c2db610bea6a6257e091
1
/* 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
}