OSDN Git Service

Formatting fixes.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / cond3.C
1 // { dg-do assemble  }
2 // Origin: Loring Holden <lsh@lsh.cs.brown.edu>
3
4 template <class T>
5 class REFptr {
6    public:
7       operator T* () const;
8 };
9
10 class CamFocus;
11 typedef REFptr<CamFocus> CamFocusptr;
12
13 class CamFocus {
14    protected:
15       static CamFocusptr  _focus;
16    public :
17       static CamFocusptr &cur() { return _focus; }
18 };
19
20 void
21 test()  
22 {
23    if (CamFocus::cur()) {
24    }
25 }