Valid code for incrementing raw pointer (#2418)
This commit is contained in:
parent
36977becba
commit
cf7ef2e703
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue