summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.old-deja/g++.other/cond3.C
blob: 56867aad69e0c6d3ae0529b8f0733ab20269b732 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Build don't link:
// Origin: Loring Holden <lsh@cs.brown.edu>

class Wtransf {};

const Wtransf Identity2 = Wtransf ();

class HELPER {
   public:
      int  current() const  { return 0; }
};

void
problem_function()
{
   HELPER tm;
   Wtransf delta  = (tm.current()) ? Identity2 : Wtransf();
}
OpenPOWER on IntegriCloud