fix testcase
From-SVN: r118155
This commit is contained in:
parent
0958b0d31d
commit
180550a8b8
@ -2,9 +2,11 @@
|
||||
// { dg-do compile }
|
||||
// { dg-options "-Wchar-subscripts" }
|
||||
|
||||
extern volatile char bla;
|
||||
|
||||
char foo (const char *s)
|
||||
{
|
||||
return s [s ['\x80']]; // { dg-warning "array subscript" }
|
||||
return s [bla]; // { dg-warning "array subscript" }
|
||||
}
|
||||
|
||||
int main ()
|
||||
|
Loading…
Reference in New Issue
Block a user