diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/cond3.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/cond3.C | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/cond3.C b/gcc/testsuite/g++.old-deja/g++.other/cond3.C new file mode 100644 index 000000000..1fe95fcbb --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/cond3.C @@ -0,0 +1,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(); +} |