Commit 180550a8 by Dirk Mueller

fix testcase

From-SVN: r118155
parent 0958b0d3
......@@ -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 ()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment