fix testcase

From-SVN: r118155
This commit is contained in:
Dirk Mueller 2006-10-29 18:46:49 +00:00
parent 0958b0d31d
commit 180550a8b8

View File

@ -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 ()