From d7cf46ac0e48f33302b740c0300791390618a27a Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Mon, 2 Aug 1999 06:44:33 +0000 Subject: [PATCH] New tests From-SVN: r28393 --- gcc/testsuite/g++.old-deja/g++.other/cond3.C | 2 +- gcc/testsuite/g++.old-deja/g++.other/cond4.C | 31 ++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 gcc/testsuite/g++.old-deja/g++.other/cond4.C diff --git a/gcc/testsuite/g++.old-deja/g++.other/cond3.C b/gcc/testsuite/g++.old-deja/g++.other/cond3.C index e5563a6..56867aa 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/cond3.C +++ b/gcc/testsuite/g++.old-deja/g++.other/cond3.C @@ -3,7 +3,7 @@ class Wtransf {}; -const Wtransf Identity2k; +const Wtransf Identity2 = Wtransf (); class HELPER { public: diff --git a/gcc/testsuite/g++.old-deja/g++.other/cond4.C b/gcc/testsuite/g++.old-deja/g++.other/cond4.C new file mode 100644 index 0000000..5c97565 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/cond4.C @@ -0,0 +1,31 @@ +// Build don't link: +// Origin: Loring Holden + +template +class _vec3d +{ + public: + double _x, _y; +}; + +class Wvec : public _vec3d { }; + +template +class TDI { + public: + T &get(); +}; + +template +class hashvar { + public : + T _val; + TDI *val() const; + T get() const { return true ? val()->get() : _val; } +}; + +int +main() { + hashvar CONSTRAINT_DIR; + CONSTRAINT_DIR.get(); +} -- 2.7.4