Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.old-deja / g++.law / ctors18.C
blobf687e292662d323682927f984fa0060d7484cf99
1 // { dg-do assemble  }
2 // GROUPS passed constructors
3 class test1 {
4 };
6 template<class T>
7 class GC_PTR {
8 public:
9   GC_PTR(T &a) {}
13 void
14 gotPtrs(GC_PTR<test1> r1)
18 static void
19 short_alloc(int n)
21         test1 here;
22         GC_PTR<test1> foo = here;   // This works fine.
24         gotPtrs(here);              // Compile error from this
25         // No constructor named `GC_PTR` in visible scope
26         // conversion between incompatible aggregate types requested