summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p11110.C
blob: 7e3a1ffa33535cbd544b051773cab1bba4ef0176 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { dg-do assemble  }
// prms-id: 11110

class data;

class conatiner {
public:
  virtual void* first    ();
  virtual data* contents (void* i);     // { dg-message "conatiner::contents|no known conversion" }
};

class user {
public:
  data* data1 () const;
private:
  conatiner& _c;
};

data* user::data1() const {
  return (_c.contents (_c.first));	// { dg-error "match" } 
  // { dg-message "candidate" "candidate note" { target *-*-* } 20 }
}