summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p2573.C
blob: 0906979c3b6ecb560213c521457f5343905d9d2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
// prms-id: 2573

class X {
public:
  int key();
  virtual int vkey();
  char *add();
};

char *X::add() {
  char *f1 = (char *) &key;	// { dg-error "" } 
  char *f2 = (char *) &vkey;	// { dg-error "" } 
  return f1;
}