summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/cvt19.C
blob: d1720ec45c620987a4b65b356916e471eb116f5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// { dg-do assemble  }
// GROUPS passed conversions
// cvt file
// Message-Id: <1166.9307131600@ace.eng.cam.ac.uk>
// From: ajp@eng.cam.ac.uk
// Date: Tue, 13 Jul 93 17:00:44 BST


class B {};

class A {
  public:
    operator const B*() const {
        return b;
    }
  private:
    B* b;
};


int main()
{
    A a;
    if (a!=0) {
    }
}