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

class A {
public:
  operator int () {
    return 7;
  }
  ~A();
};

int foo() {
  return A();
}

int main() {
  return foo() != 7;
}

A::~A() {
}