* Makefile.in: Rebuilt.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / cvt4.C
blobd45d789898656f3d708f26ce7b73bf4b5e6f76ab
1 // GROUPS passed conversions
2 // cvt file
3 // Message-Id: <9308091213.AA11572@emmy.Mathematik.Uni-Dortmund.DE>
4 // From: Michael Strauch <strauch@emmy.mathematik.uni-dortmund.de>
5 // Subject: Bug in GCC 2.4.5
6 // Date: Mon, 9 Aug 93 14:13:50 MESZ
8 extern "C" int printf (const char *, ...);
10 int destruct = 2;
12   class Test{
13   protected:
14      long x;
15   public:
16      Test(){;}
17      Test(long l) {x=l;}
18      ~Test() {if (--destruct == 0) printf ("PASS\n");}
19   };
21 int main()
22   {
23      long i=1;
24      Test t;
26      t=(Test)i;
27   }