☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
diagnostic
/
ptrtomem3.C
☽
☼
gcc/testsuite/g++.dg/diagnostic/ptrtomem3.C
code
plain
raw
1
// Check that the diagnostic for a pointer-to-member expression has the caret
2
// at the &.
3
4
struct A
5
{
6
int i;
7
};
8
9
void f();
10
11
int main()
12
{
13
return &A::i; // { dg-error "10:cannot convert" }
14
}