Debian Codegraph @

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

raw
1 // PR c++/44524
2
3 template<typename, typename>
4 struct map
5 {
6 bool empty();
7 };
8
9 int bar(map<int, float> *X) {
10 return X.empty(); // { dg-error "which is of pointer type 'map" }
11 }