summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/conversion9.C
blob: aeda02816be9750eb53b26a197efb4ca2e1e4221 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do run  }
// PRMS Id: 8475

class SomeClass {
public:
  operator int & () {
    static int x;
    return x;
  }
} a;

int main (int, char**) {
  return a + 0;
}