Valid code for incrementing raw pointer (#2418)

This commit is contained in:
Dmitry-Me 2019-12-03 20:33:05 +03:00 committed by Daniel Marjamäki
parent 36977becba
commit cf7ef2e703
1 changed files with 4 additions and 1 deletions

View File

@ -326,7 +326,10 @@ private:
void pointer() {
check("static struct class * ab;\n"
"int * p;\n"
"p++;\n");
"\n"
"void f() {\n"
" p++;\n"
"}\n");
ASSERT_EQUALS("", errout.str());
}