☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.dg
/
Waddress.d
☽
☼
gcc/testsuite/gdc.dg/Waddress.d
code
plain
raw
1
// { dg-do compile }
2
// { dg-options "-Waddress" }
3
4
void* ptr;
5
6
int test()
7
{
8
if (&ptr) // { dg-warning "the address of 'ptr' will always evaluate as 'true'" }
9
return 1;
10
11
return 0;
12
}