blob: 2fc5aa65ec8e299c39cab071b642d64f90765f7f [file] [log] [blame]
// PR c++/29106
int i;
void f(__SIZE_TYPE__) {
i = 3;
}
int main()
{
int* const savepos = sizeof(*savepos) ? 0 : 0; /* { dg-error "invalid conversion" "convert" { target c++11 } } */
f (sizeof (*savepos));
if (i != 3)
return 1;
}