blob: 5d6fdec5291dfac6cc57a66c516bbc8272bd375f [file] [log] [blame]
// { dg-do assemble }
// { dg-options "-Wall -Wno-int-to-pointer-cast" }
typedef char * charptr;
typedef __SIZE_TYPE__ size_t;
char c[]={'A','B','C','D'};
int i=size_t(&c);
int *pp=&i;
void foo() { }
int main()
{
charptr(*pp)++; // { dg-error "lvalue" }
return 0;
}