(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
diagnostic/
base-operand-non-pointer-1.C
class C { public: C f(); int get(); };
int f(C* p) { return p->f()->get(); }  // { dg-error "28:base operand of .->. has non-pointer type .C." }