summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/cond2.C
blob: a7c3691104e4f4f9fe741f3a2bcc39b8fe299726 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do assemble  }
// Origin: Loring Holden <lsh@cs.brown.edu>

class Wpt {};

class RAYhit {
   protected:
      Wpt       _nearpt;
   public:
      Wpt       surf        () const { return true ? Wpt(): _nearpt; } 
};