blob: 74d7de807752d539d7a5c6803e4fdb1df75af97b [file] [log] [blame]
// { dg-do compile }
// { dg-options "-Waddress" }
void* ptr;
int test()
{
if (&ptr) // { dg-warning "the address of 'ptr' will always evaluate as 'true'" }
return 1;
return 0;
}