summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/cond3.C
blob: 1fe95fcbb6ec824e166982d7bf8b87361fabac75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do assemble  }
// 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();
}