2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / debug9.C
blob2ddc927d855f8c0271bdca4b577e9c5bb3d94572
1 // { dg-do assemble  }
2 // { dg-options "-g" }
4 //  Copyright (C) 2001 Free Software Foundation, Inc.
5 //  Contributed by Jeffrey D. Oldham 2001 May 17 <oldham@codesourcery.com>.
7 // This illustrates that debugging information for CONCAT RTL's
8 // supports only COMPLEX_TYPE types, not other types.
10 namespace std {
11   template<typename _Tp> class complex;
13   template<> class complex<double>
14   {
15   public:
16     complex(double =0.0, double =0.0);
18   private:
19     typedef __complex__ double _ComplexT;
20     _ComplexT _M_value;
21   };
23   inline
24   complex<double>::complex(double __r, double __i)
25   {
26     __real__ _M_value = __r;
27     __imag__ _M_value = __i;
28   }
31 template <int Dim, class T>
32 class Engine
34 public:
35   Engine (T val = T()) {}
38 int main()
40   Engine<1, std::complex<double> > e;
41   return 0;