summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/cond3.C
blob: e82b686e92ec0d8ff9bfde53ec0aba611b81b372 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// { dg-do assemble  }
// Origin: Loring Holden <lsh@lsh.cs.brown.edu>

template <class T>
class REFptr {
   public:
      operator T* () const;
};

class CamFocus;
typedef REFptr<CamFocus> CamFocusptr;

class CamFocus {
   protected:
      static CamFocusptr  _focus;
   public :
      static CamFocusptr &cur() { return _focus; }
};

void
test()  
{
   if (CamFocus::cur()) {
   }
}