Debian Codegraph @

gcc/testsuite/g++.dg/diagnostic/ptrtomem3.C

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 }