OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2009-09-01 Diego Novillo <dnovillo@google.com>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wchar-subscripts-2.C
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
}