Debian Codegraph @

gcc/testsuite/g++.dg/parse/error55.C

raw
1 // PR c++/60845
2
3 class A { };
4 typedef A B;
5 void foo (B &a) {
6 a.x(); // { dg-error "'B' {aka 'class A'} has no member named 'x'" }
7 }