2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / temporary5.C
blobd233fa9b3ad654c078fc16109508a2982186acd2
1 // { dg-do run  }
2 // PRMS Id: 6604
3 // Bug: Scoped constructor call is not properly recognized as a functional cast
5 int c;
7 struct A {
8   A() { ++c; }
9   ~A() { --c; }
10   operator int () { return 1; }
13 int main ()
15   A::A();
16   return c;