Skip to content
Snippets Groups Projects
Commit ec1b135b authored by mueller's avatar mueller
Browse files

fix testcase

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118155 138bc75d-0d04-0410-961f-82ee72b054a4
parent ab51d490
Branches
Tags
No related merge requests found
......@@ -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 ()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment