gcc/testsuite/g++.old-deja/g++.other/cond3.C
raw| 1 | // { dg-do assemble } |
| 2 | // Origin: Loring Holden <[email protected]> |
| 3 | |
| 4 | class Wtransf {}; |
| 5 | |
| 6 | const Wtransf Identity2 = Wtransf (); |
| 7 | |
| 8 | class HELPER { |
| 9 | public: |
| 10 | int current() const { return 0; } |
| 11 | }; |
| 12 | |
| 13 | void |
| 14 | problem_function() |
| 15 | { |
| 16 | HELPER tm; |
| 17 | Wtransf delta = (tm.current()) ? Identity2 : Wtransf(); |
| 18 | } |